X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/22c599abc18895f73e96095f35b71cf3357d41b4..e005c191842ccab0e9600a2221616f434ad0afc7:/hotline/transaction_handlers.go diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index b06297d..0ae6071 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -625,7 +625,6 @@ func HandleSetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error func HandleGetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error) { userLogin := string(t.GetField(fieldUserLogin).Data) - decodedUserLogin := NegatedUserString(t.GetField(fieldUserLogin).Data) account := cc.Server.Accounts[userLogin] if account == nil { errorT := cc.NewErrReply(t, "Account does not exist.") @@ -635,7 +634,7 @@ func HandleGetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error res = append(res, cc.NewReply(t, NewField(fieldUserName, []byte(account.Name)), - NewField(fieldUserLogin, []byte(decodedUserLogin)), + NewField(fieldUserLogin, negateString(t.GetField(fieldUserLogin).Data)), NewField(fieldUserPassword, []byte(account.Password)), NewField(fieldUserAccess, *account.Access), ))