summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-06-26 16:19:58 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-06-29 11:55:53 +0200
commit5b7084aeb587cd06dcfae8ab6fa3b175e6704138 (patch)
tree1d5cda11ef2d773a947d4e2cf815c9513f371807 /ipalib/plugins/internal.py
parenta6ff85f425d5c38dd89fcd8999e0d62eadb969a1 (diff)
downloadfreeipa-5b7084aeb587cd06dcfae8ab6fa3b175e6704138.tar.gz
freeipa-5b7084aeb587cd06dcfae8ab6fa3b175e6704138.tar.xz
freeipa-5b7084aeb587cd06dcfae8ab6fa3b175e6704138.zip
Web UI password is going to expire in n days notification
This patch adds pending password expiration notification support to Web UI. When user's password is going to expire in less or equal than configure days a bold red text 'Your password expires in N days.' and a link 'Reset your password' are shown in Web UI's header (on the left next to 'Logged in as...'). Clicking on 'Reset your password link' opens IPA.user_password_dialog. Successful reset of own password will reload user's information (whoami) and update header (it will most likely hide the warning and link). https://fedorahosted.org/freeipa/ticket/2625
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 0ba2aa859..a4d87b1d7 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -578,6 +578,7 @@ class i18n_messages(Command):
"password": {
"current_password": _("Current Password"),
"current_password_required": _("Current password is required"),
+ "expires_in": _("Your password expires in ${days} days."),
"invalid_password": _("The password or username you entered is incorrect."),
"new_password": _("New Password"),
"new_password_required": _("New password is required"),
@@ -586,6 +587,7 @@ class i18n_messages(Command):
"password_must_match": _("Passwords must match"),
"reset_failure": _("Password reset was not successful."),
"reset_password": _("Reset Password"),
+ "reset_password_sentence": _("Reset your password."),
"verify_password": _("Verify Password"),
},
"search": {