mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-09 12:11:03 +00:00
Fix user id
This commit is contained in:
parent
38b6993bd6
commit
0dde8e270c
@ -1,7 +1,6 @@
|
|||||||
package memory
|
package memory
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
id string
|
|
||||||
name string
|
name string
|
||||||
password string
|
password string
|
||||||
Tokens map[string]Token
|
Tokens map[string]Token
|
||||||
@ -10,7 +9,7 @@ type User struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) ID() string {
|
func (user *User) ID() string {
|
||||||
return "@" + user.id + ":" + user.backend.hostname
|
return "@" + user.name + ":" + user.backend.hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) Name() string {
|
func (user *User) Name() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user