diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-07-09 16:58:00 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-07-10 13:30:38 +0200 |
commit | 848bd0e9e738a4590049a223868dcfe6749a9154 (patch) | |
tree | 8539184b9e3d9655d953980b12487db68ea16253 /ipalib/plugins | |
parent | 05cf7c53a69b7c999ac68c2869db924e2dccc3a0 (diff) | |
download | freeipa-848bd0e9e738a4590049a223868dcfe6749a9154.tar.gz freeipa-848bd0e9e738a4590049a223868dcfe6749a9154.tar.xz freeipa-848bd0e9e738a4590049a223868dcfe6749a9154.zip |
Password policy measurement units.
When filling password policy it may be unclear what value to enter because user may not remember field's measurement unit.
This patch adds support for declaring measurement units. It's done in field's/widget's spec by entering key for unit's string (which is in IPA.messages.measurement_units[key]).
Measurement units in table layout are displayed in parenthesis after label. It is to be consistent with some fields which have measurement unit integrated in label.
This patch defines measurement units for password policy's 'History size', 'Failure reset interval' and 'Lockout duration' fields.
https://fedorahosted.org/freeipa/ticket/2437
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/internal.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index a4d87b1d7..eb48b3bfa 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -273,6 +273,10 @@ class i18n_messages(Command): "password": _("Password"), "username": _("Username"), }, + "measurement_units": { + "number_of_passwords": _("number of passwords"), + "seconds": _("seconds"), + }, "objects": { "aci": { "attribute": _("Attribute"), |