validator

package
v1.1.0-beta.0...-9958228 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 8 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, currentUser *auth.UserIdentity, globalVars *variable.GlobalVarAccessor) (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