Fix user id

This commit is contained in:
nxshock 2019-07-21 16:04:02 +05:00
parent 38b6993bd6
commit 0dde8e270c

View File

@ -1,7 +1,6 @@
package memory
type User struct {
id string
name string
password string
Tokens map[string]Token
@ -10,7 +9,7 @@ type User struct {
}
func (user *User) ID() string {
return "@" + user.id + ":" + user.backend.hostname
return "@" + user.name + ":" + user.backend.hostname
}
func (user *User) Name() string {