aboutsummaryrefslogtreecommitdiff
path: root/hotline/account.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
commit76d0c1f61d5981603389e6267bf62636f34bef1f (patch)
tree41534fcb6f03671670b0727d40302c14b6f9def0 /hotline/account.go
parent6aa45e93e2b9d1bd91c9fa6a736f0c669d3ae303 (diff)
Rename encode/decode methods
Diffstat (limited to 'hotline/account.go')
-rw-r--r--hotline/account.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/account.go b/hotline/account.go
index c51162d..b041f3c 100644
--- a/hotline/account.go
+++ b/hotline/account.go
@@ -19,7 +19,7 @@ type Account struct {
func (a *Account) Read(p []byte) (n int, err error) {
fields := []Field{
NewField(FieldUserName, []byte(a.Name)),
- NewField(FieldUserLogin, negateString([]byte(a.Login))),
+ NewField(FieldUserLogin, encodeString([]byte(a.Login))),
NewField(FieldUserAccess, a.Access[:]),
}