diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-06-26 16:19:58 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-06-29 11:55:53 +0200 |
commit | 5b7084aeb587cd06dcfae8ab6fa3b175e6704138 (patch) | |
tree | 1d5cda11ef2d773a947d4e2cf815c9513f371807 /install/ui/test | |
parent | a6ff85f425d5c38dd89fcd8999e0d62eadb969a1 (diff) | |
download | freeipa-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 'install/ui/test')
-rw-r--r-- | install/ui/test/data/ipa_init.json | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 6621fe56f..85ff9366c 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -439,6 +439,7 @@ "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", @@ -447,6 +448,7 @@ "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": { @@ -500,6 +502,59 @@ } }, { + "error": null, + "result": { + "dn": "cn=ipaconfig,cn=etc,dc=test,dc=example,dc=com", + "ipacertificatesubjectbase": [ + "O=EXAMPLE.COM" + ], + "ipaconfigstring": [ + "AllowNThash" + ], + "ipadefaultemaildomain": [ + "example.com" + ], + "ipadefaultloginshell": [ + "/bin/sh" + ], + "ipadefaultprimarygroup": [ + "ipausers" + ], + "ipagroupsearchfields": [ + "cn,description" + ], + "ipahomesrootdir": [ + "/home" + ], + "ipamaxusernamelength": [ + "32" + ], + "ipamigrationenabled": [ + "FALSE" + ], + "ipapwdexpadvnotify": [ + "4" + ], + "ipasearchrecordslimit": [ + "100" + ], + "ipasearchtimelimit": [ + "2" + ], + "ipaselinuxusermapdefault": [ + "guest_u:s0" + ], + "ipaselinuxusermaporder": [ + "guest_u:s0$xguest_u:s0$user_u:s0-s0:c0.c1023$staff_u:s0-s0:c0.c1023$unconfined_u:s0-s0:c0.c1023" + ], + "ipausersearchfields": [ + "uid,givenname,sn,telephonenumber,ou,title" + ] + }, + "summary": null, + "value": "" + }, + { "count": 1, "error": null, "result": [ @@ -534,7 +589,7 @@ "20120110142413Z" ], "krbpasswordexpiration": [ - "20111212052109Z" + "20141212052109Z" ], "krbprincipalname": [ "admin@DEV.EXAMPLE.COM" |