Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSecPwdLength = errors.New("password must be 6 digits") ErrInvalidSecPwdConsecutive = errors.New("password must not contain three consecutive identical digits") ErrInvalidSecPwdSequential = errors.New("password must not contain three or more sequential digits") )
定义常见错误消息
Functions ¶
func IsCorrectPassword ¶
IsCorrectPassword 用于比较输入的密码和存储的散列值是否匹配
func NumberPwdValidate ¶
NumberPwdValidate 验证指定长度的纯数字字符串密码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.