Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registration ¶
type User ¶
type User struct { Props // ID is unique user ID ID pgtype.UUID `json:"id" db:"id"` // PasswordHash contains encrypted password and salt in bcrypt format PasswordHash string `json:"-" db:"password"` }
func (User) ComparePassword ¶
ComparePassword compares password with hashed in user
func (*User) SetPassword ¶
SetPassword encrypts and updates user password
Click to show internal directories.
Click to hide internal directories.