Documentation ¶
Index ¶
- func ValidateDictionaryPassword(pwd string, globalVars *variable.GlobalVarAccessor) (bool, error)
- func ValidatePassword(sessionVars *variable.SessionVars, pwd string) error
- func ValidatePasswordLowPolicy(pwd string, globalVars *variable.GlobalVarAccessor) (string, error)
- func ValidatePasswordMediumPolicy(pwd string, globalVars *variable.GlobalVarAccessor) (string, error)
- func ValidateUserNameInPassword(pwd string, currentUser *auth.UserIdentity, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDictionaryPassword ¶
func ValidateDictionaryPassword(pwd string, globalVars *variable.GlobalVarAccessor) (bool, error)
ValidateDictionaryPassword checks if the password contains words in the dictionary.
func ValidatePassword ¶
func ValidatePassword(sessionVars *variable.SessionVars, pwd string) error
ValidatePassword checks whether the pwd can be used.
func ValidatePasswordLowPolicy ¶
func ValidatePasswordLowPolicy(pwd string, globalVars *variable.GlobalVarAccessor) (string, error)
ValidatePasswordLowPolicy checks whether pwd satisfies the low policy of password validation.
func ValidatePasswordMediumPolicy ¶
func ValidatePasswordMediumPolicy(pwd string, globalVars *variable.GlobalVarAccessor) (string, error)
ValidatePasswordMediumPolicy checks whether pwd satisfies the medium policy of password validation.
func ValidateUserNameInPassword ¶
func ValidateUserNameInPassword(pwd string, currentUser *auth.UserIdentity, globalVars *variable.GlobalVarAccessor) (string, error)
ValidateUserNameInPassword checks whether pwd exists in the dictionary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.