From 37b7b28993552a6ab0fe22fc599c3c5fe8362fe3 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 8 Jun 2012 15:02:25 +0200 Subject: Added password reset capabilities to unauthorized dialog Web UI was missing a way how to reset expired password for normal user. Recent server patch added API for such task. This patch is adding reset password form to unautorized dialog. If user tries to login using form-based authentication and his password is expired login form transforms to reset password form. The username and password are used from previous login attempt. User have to enter new password and its verification. Then he can hit enter button on keyboard or click on reset button on dialog to perform the password reset. Error is displayed if some part of password reset fails. If it is successful new login with values entered for password reset is performed. It should login the user. In password reset form user can click on cancel button or hit escape on keyboard to go back to login form. https://fedorahosted.org/freeipa/ticket/2755 --- ipalib/plugins/internal.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index d860baf4..82ef3003 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -144,8 +144,7 @@ class i18n_messages(Command): messages = { "ajax": { "401": { - "message": _("Your Kerberos ticket is no longer valid. Please run kinit and then click 'Retry'. If this is your first time running the IPA Web UI follow these directions to configure your browser."), - "title": _("Kerberos ticket no longer valid."), + "message": _("Your session has expired. Please re-login."), }, }, "actions": { @@ -202,6 +201,7 @@ class i18n_messages(Command): "refresh": _("Refresh"), "remove": _("Delete"), "reset": _("Reset"), + "reset_password_and_login": _("Reset Password and Login"), "restore": _("Restore"), "retry": _("Retry"), "revoke": _("Revoke"), @@ -264,13 +264,13 @@ class i18n_messages(Command): }, "false": _("False"), "login": { - "form_auth": _("form-based authentication"), + "form_auth": _("To login with username and password, enter them in the fields below then click Login."), "header": _("Logged In As"), + "krb_auth_msg": _("To login with Kerberos, please make sure you have valid tickets (obtainable via kinit) and configured the browser correctly, then click Login."), "login": _("Login"), "logout": _("Logout"), "logout_error": _("Logout error"), "password": _("Password"), - "use": _("Or you can use "), "username": _("Username"), }, "objects": { @@ -565,10 +565,12 @@ class i18n_messages(Command): "password": { "current_password": _("Current Password"), "current_password_required": _("Current password is required"), + "invalid_password": _("The password or username you entered is incorrect."), "new_password": _("New Password"), "new_password_required": _("New password is required"), "password_change_complete": _("Password change complete"), "password_must_match": _("Passwords must match"), + "reset_failure": _("Password reset was not successful."), "reset_password": _("Reset Password"), "verify_password": _("Verify Password"), }, -- cgit