Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIncorrectPassword = errors.New("incorrect username or password") ErrEmailWasTaken = errors.New("email was taken") ErrUsernameWasTaken = errors.New("username was taken") )
Errors
View Source
var (
ErrInvalidCaptcha = errors.New("Invalid captcha")
)
Functions ¶
func IsUserEmailTaken ¶
func IsUserEmailTaken(db *sqlex.DB) validation.RuleFunc
IsUserEmailTaken validates whether the user email was taken.
func IsUsernameTaken ¶
func IsUsernameTaken(db *sqlex.DB) validation.RuleFunc
IsUsernameTaken validates whether the username was taken.
func UserPassword ¶
func UserPassword(user *models.User) validation.RuleFunc
UserPassword validates user password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.