Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
ID string
Email string
EmailVerified bool
Password string
Name string
Nickname string
GivenName string
FamilyName string
CreatedAt time.Time
UpdatedAt time.Time
IsAdmin bool
}
User holds the user profile
func (*User) CheckPassword ¶
CheckPassword checks the password
func (*User) SetPassword ¶
SetPassword sets the user password (and hashes it)
Click to show internal directories.
Click to hide internal directories.