validator

package
v7.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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, sessionVars *variable.SessionVars) (string, error)

ValidateUserNameInPassword checks whether pwd exists in the dictionary.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL