Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID string Username string Email string Password string CreatedAt string `db:"created_at"` Confirmed bool // EmailConfirmedAt string `db:"email_confirmed_at"` // EmailSentAt string `db:"email_sent_at"` Roles []*Role }
User struct represents our User model
func (*User) ComparePassword ¶
ComparePassword compare the given password with the password in db
func (*User) HashedPassword ¶
HashedPassword hash user password
type UserCredentials ¶
UserCredentials holds our User credentials
Click to show internal directories.
Click to hide internal directories.