Update the help message for unique_last_password_count
The help message for unique_last_password_count doesn't tell the count logic to users, so that the users may misunderstand it. This patch updated the message to make it more clear. Change-Id: I8ab1db5c07b199a3a0ef86a79e9895be48c0a1db Closes-bug: #1727099
This commit is contained in:
parent
70fe4ec09b
commit
49d75d668c
@ -70,10 +70,11 @@ unique_last_password_count = cfg.IntOpt(
|
||||
min=1,
|
||||
help=utils.fmt("""
|
||||
This controls the number of previous user password iterations to keep in
|
||||
history, in order to enforce that newly created passwords are unique. Setting
|
||||
the value to one (the default) disables this feature. Thus, to enable this
|
||||
feature, values must be greater than 1. This feature depends on the `sql`
|
||||
backend for the `[identity] driver`.
|
||||
history, in order to enforce that newly created passwords are unique. The total
|
||||
number which includes the new password should not be greater or equal to this
|
||||
value. Setting the value to one (the default) disables this feature. Thus, to
|
||||
enable this feature, values must be greater than 1. This feature depends on
|
||||
the `sql` backend for the `[identity] driver`.
|
||||
"""))
|
||||
|
||||
minimum_password_age = cfg.IntOpt(
|
||||
|
@ -105,8 +105,8 @@ class PasswordRequirementsValidationError(PasswordValidationError):
|
||||
|
||||
class PasswordHistoryValidationError(PasswordValidationError):
|
||||
message_format = _("The new password cannot be identical to a "
|
||||
"previous password. The number of previous "
|
||||
"passwords that must be unique is "
|
||||
"previous password. The total number which"
|
||||
"includes the new password must be unique is "
|
||||
"%(unique_count)s.")
|
||||
|
||||
|
||||
|
9
releasenotes/notes/bug-1727099-1af277b35db34372.yaml
Normal file
9
releasenotes/notes/bug-1727099-1af277b35db34372.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
[`bug 1727099 <https://bugs.launchpad.net/keystone/+bug/1727099>`_]
|
||||
When users try to changes their password, the total number which
|
||||
includes the new password should not be greater or equal to the
|
||||
``unique_last_password_count`` config options. But the help and error
|
||||
messages for this scenario are not described clearly. Now the messges
|
||||
are updated to be more clear.
|
Loading…
x
Reference in New Issue
Block a user