Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Email string `json:"email" bson:"email"` EmailBackup []string `json:"-" bson:"emailBackup"` ID string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Password string `json:"password" bson:"password"` ResetPasswordToken string `json:"resetPasswordToken" bson:"resetPasswordToken"` Token string `json:"token" bson:"-"` VerifyToken string `json:"verifyToken" bson:"verifyToken"` }
User is the structure of a user
func (*User) HashPassword ¶
HashPassword hashed the password of the user
func (*User) MatchPassword ¶
MatchPassword returns true if the hashed user password matches the password
Click to show internal directories.
Click to hide internal directories.