diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-04-16 12:22:34 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-04-16 21:53:56 -0400 |
commit | c64bcafa137474cf31cd99e7cd6c28a00add85ff (patch) | |
tree | b02bf5514d24d35f51d713ad453f1e8e60321dd2 /install/ui/login.html | |
parent | 7b515bddbcec2499fb765be311b3d093edcf6db2 (diff) | |
download | freeipa-c64bcafa137474cf31cd99e7cd6c28a00add85ff.tar.gz freeipa-c64bcafa137474cf31cd99e7cd6c28a00add85ff.tar.xz freeipa-c64bcafa137474cf31cd99e7cd6c28a00add85ff.zip |
User is notified that password needs to be reset in forms-based login
Forms-based login procedure detects if 401 unauthorized response contains
'X-IPA-Rejection-Reason' http header with 'password-expired' value. If so
it displays an error message that user needs to reset his password.
https://fedorahosted.org/freeipa/ticket/2608
Diffstat (limited to 'install/ui/login.html')
-rw-r--r-- | install/ui/login.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install/ui/login.html b/install/ui/login.html index d88ee0eeb..9902466a7 100644 --- a/install/ui/login.html +++ b/install/ui/login.html @@ -21,12 +21,19 @@ <div id="formwindow"> <h2>Login</h2> - <div id="error-box" style="display:none"> + + <div id="invalid" class="error-box" style="display:none"> <p><strong>Please re-enter your username or password</strong></p> <p>The password or username you entered is incorrect. Please try again (make sure your caps lock is off).</p> <p>If the problem persists, contact your administrator.</p> </div> + <div id="expired" class="error-box" style="display:none"> + <p><strong>Password expired</strong></p> + <p>Please run kinit to reset the password and then try to login again.</p> + <p>If the problem persists, contact your administrator.</p> + </div> + <form id="login"> <ul> <li> |