Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"_id"` FirstName string `bson:"first_name" json:"first_name"` LastName string `bson:"last_name" json:"last_name"` Username string `bson:"username" json:"username"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"password"` Role string `bson:"role" json:"role"` }
func (*User) IsCorrectPassword ¶
Compares hashedpassword from db to provided password
func (*User) RequiredFields ¶
RequiredFields checks that the required field are not empty
Click to show internal directories.
Click to hide internal directories.