Documentation ¶
Index ¶
- Variables
- func Credentials(username, password string) []byte
- func PasswordValidate(in string) error
- func RegisterAccount(db *xorm.Engine, user, pass string, tier rpcnet.Tier) error
- func SetAccount(acc *models.Account, username, password string, tier rpcnet.Tier) error
- func UsernameValidate(input string) error
- func Verify(username, password string, againstHash []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUsernameCannotBeEmpty = errors.New("login: username cannot be empty") ErrUsernameTooLong = errors.New("login: username too long") ErrUsernameTooShort = errors.New("login: username too short") ErrUsernameInvalidChars = errors.New("login: invalid characters") ErrPasswordCannotBeEmpty = errors.New("login: password cannot be empty") ErrPasswordTooLong = errors.New("login: password too long") ErrPasswordTooShort = errors.New("login: password too short") )
Functions ¶
func Credentials ¶
func PasswordValidate ¶
func RegisterAccount ¶
func SetAccount ¶
func UsernameValidate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.