Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type User ¶
type User struct { ID uint Name string `json:"name"` Email string `json:"email"` Password string `json:"password"` HashedPassword string `json:"hashed_password"` }
func (*User) HashPassword ¶
HashPassword Hashes the given password and store in it
func (*User) VerifyPassword ¶
VerifyPassword compares the given password with the user's PasswordHash and checks if they match.
Click to show internal directories.
Click to hide internal directories.