diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-21 19:00:21 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-21 19:00:30 +0200 |
| commit | 7e468367e6f8710754f0b27f3a7de4e5ca50c871 (patch) | |
| tree | f8c58dddc72b96c0fc1d2c04f271fb69c57a680f /res | |
| parent | c36f33816cd1acf3356b231e91d53df5dd471e5b (diff) | |
Fixes #271: provide feedback on failed login
Diffstat (limited to 'res')
| -rw-r--r-- | res/templates/login.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/templates/login.html b/res/templates/login.html index 71990445..a0ab2161 100644 --- a/res/templates/login.html +++ b/res/templates/login.html @@ -25,7 +25,7 @@ document.location = "/index"; }, error : function (xhr, status, err_thrown) { - document.location = "/login"; + $('#failed-login').show(); } }); } @@ -50,8 +50,8 @@ <a class="forgot-password">Forgot your password?</a> </form> </fieldset> - <div id="failed-login"> - {% if login_failed %}<b>Login Failed</b>{% endif %} + <div id="failed-login" style="display: none"> + <b>Login Failed</b> </div> </div> <div class="contact-us-div"><span class="contact-us-icon"></span></div> |
