fix: disable password history unique check by default (#23435)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2025-09-29 15:48:50 +08:00
committed by GitHub
parent 6c53ace799
commit 8bd6dd48bb

View File

@@ -40,7 +40,7 @@ type SKeystoneOptions struct {
PasswordExpirationSeconds int `help:"password expires after the duration in seconds"`
PasswordMinimalLength int `help:"password minimal length" default:"6"`
PasswordUniqueHistoryCheck int `help:"password must be unique in last N passwords" default:"1"`
PasswordUniqueHistoryCheck int `help:"password must be unique in last N passwords, default is 0 means no check" default:"0"`
PasswordCharComplexity int `help:"password complexity policy" default:"0"`
PasswordErrorLockCount int `help:"lock user account if given number of failed auth"`