mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-05 10:11:02 +00:00
22 lines
324 B
Go
22 lines
324 B
Go
package memory
|
|
|
|
type User struct {
|
|
name string
|
|
password string
|
|
Tokens map[string]Token
|
|
|
|
backend *Backend
|
|
}
|
|
|
|
func (user *User) ID() string {
|
|
return "@" + user.name + ":" + user.backend.hostname
|
|
}
|
|
|
|
func (user *User) Name() string {
|
|
return user.name
|
|
}
|
|
|
|
func (user *User) Password() string {
|
|
return user.password
|
|
}
|