AJAX login: fixed lockout string being displayed where it shouldn't be
authorDan
Sat, 11 Jul 2009 20:24:19 -0400
changeset 1052 374d08d176cb
parent 1051 78b41fb98140
child 1053 bdbb49cf6f1b
AJAX login: fixed lockout string being displayed where it shouldn't be
includes/clientside/static/login.js
--- a/includes/clientside/static/login.js	Sat Jul 11 20:22:38 2009 -0400
+++ b/includes/clientside/static/login.js	Sat Jul 11 20:24:19 2009 -0400
@@ -1036,7 +1036,7 @@
       }
     case 'invalid_credentials':
       var base = $lang.get('user_err_invalid_credentials');
-      if ( response.respawn_info.locked_out )
+      if ( response.respawn_info.locked_out.locked_out )
       {
         base += ' ';
         var captcha_blurb = '';
@@ -1048,7 +1048,7 @@
           case 'lockout':
             break;
           default:
-            base += 'WTF? Shouldn\'t be locked out with lockout policy set to disable.';
+            base += 'WTF? Shouldn\'t be locked out with lockout policy set to disable. ';
             break;
         }
         base += $lang.get('user_err_locked_out', {