Documentation ¶
Index ¶
Constants ¶
View Source
const MaxLength = 8192
MaxLength is the maximum length of input password Password exceeding this length would be truncated internally before hashing.
Variables ¶
View Source
var ErrNewPasswordTypo = apierrors.Invalid.WithReason("NewPasswordTypo").New("new password typo")
View Source
var ErrTooLong = errors.New("password is too long")
Functions ¶
func ConfirmPassword ¶
ConfirmPassword checks if the user has made a typo mistake when creating their new password. Both input are given by the same person, constant time comparison is not needed here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.