aboutsummaryrefslogtreecommitdiff
path: root/hotline/account.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-03-26 21:10:03 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2023-03-26 21:10:03 -0700
commitd005ef04cfaa26943e6dd33807d741577ffb232a (patch)
tree26b5e4a945889dde0597f615cee31957efb32fa5 /hotline/account.go
parentc3c2f61b2fd90ab5c7fe6ec769644e9d66d40361 (diff)
Initial refactor to split client from protocol package
Diffstat (limited to 'hotline/account.go')
-rw-r--r--hotline/account.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hotline/account.go b/hotline/account.go
index 9a0fb7d..c51162d 100644
--- a/hotline/account.go
+++ b/hotline/account.go
@@ -18,13 +18,13 @@ type Account struct {
// Read implements io.Reader interface for Account
func (a *Account) Read(p []byte) (n int, err error) {
fields := []Field{
- NewField(fieldUserName, []byte(a.Name)),
- NewField(fieldUserLogin, negateString([]byte(a.Login))),
- NewField(fieldUserAccess, a.Access[:]),
+ NewField(FieldUserName, []byte(a.Name)),
+ NewField(FieldUserLogin, negateString([]byte(a.Login))),
+ NewField(FieldUserAccess, a.Access[:]),
}
if bcrypt.CompareHashAndPassword([]byte(a.Password), []byte("")) != nil {
- fields = append(fields, NewField(fieldUserPassword, []byte("x")))
+ fields = append(fields, NewField(FieldUserPassword, []byte("x")))
}
fieldCount := make([]byte, 2)