Documentation ¶
Index ¶
Constants ¶
View Source
const ( UsernameMinLength = 3 UsernameMaxLength = 255 PasswordMinLength = 8 )
Variables ¶
View Source
var ( //errors ErrPasswordConfirmationDoesNotMatch = errors.Validation( errors.FromString("Password confirmation doesn't match.")) ErrUsernameAlreadyTaken = errors.Conflict(errors.FromString("Username already taken")) ErrUsernameWrongLength = errors.Validation(fmt.Errorf( "Username length is valid, mininum is %d and maximum is %d", UsernameMinLength, UsernameMaxLength, )) ErrPasswordTooShort = errors.Validation( fmt.Errorf("Passord must be longer than %d characters", PasswordMinLength)) ErrUsernameHasInvalidCharacters = errors.Validation( errors.FromString("Username can only contain alphanumeric characters and underscores.")) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.