package
Version:
v0.0.0-...-35ff541
Opens a new window with list of versions in this module.
Published: Jul 8, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
SetResetPasswordToken ...
type JwtToken struct {
jwt.StandardClaims
UserID uint
}
JwtToken ...
type PasswordReset struct {
TokenReset string `json:"token_reset"`
NewPassword string `json:"new_password"`
}
type User struct {
gorm.Model
Email string `json:"email"`
Password string `json:"password"`
Token string `json:"token";sql:"-"`
TokenReset string `json:"tokenReset";sql:"-"`
TokenResetExpires time.Time `json:"tokenResetTime"`
}
User model
Validate validates user data when attempting to create an account
Source Files
¶
Click to show internal directories.
Click to hide internal directories.