Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- func LoadTemplates(template_path string) string
- type AccessTokens
- type AuthTokensObject
- type EmailVerification
- type ForgotPass
- type MongoInstance
- type RefreshToken
- type RefreshTokens
- type ResetPass
- type SignIn
- type Success
- type UpdatePassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func LoadTemplates ¶
Types ¶
type AccessTokens ¶
type AuthTokensObject ¶
type AuthTokensObject struct { Access AccessTokens `json:"access"` Refresh RefreshTokens `json:"refresh"` }
type EmailVerification ¶
type ForgotPass ¶
type ForgotPass struct {
Email string `json:"email" validate:"required,email,max=255"`
}
type RefreshToken ¶
type RefreshToken struct {
RefreshToken string `json:"refresh_token"`
}
type RefreshTokens ¶
type UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.