plugins/SpecialUserFuncs.php
changeset 1032 9e61f16a8e47
parent 989 79d558a94798
child 1081 745200a9cc2a
--- a/plugins/SpecialUserFuncs.php	Thu Jul 02 09:00:52 2009 -0400
+++ b/plugins/SpecialUserFuncs.php	Thu Jul 02 09:01:29 2009 -0400
@@ -171,11 +171,11 @@
         break;
       case 'invalid_credentials':
         $errstring = $lang->get('user_err_invalid_credentials');
-        if ( $__login_status['lockout_policy'] == 'lockout' )
+        if ( getConfig('lockout_policy', 'lockout') == 'lockout' )
         {
-          $errstring .= $lang->get('err_invalid_credentials_lockout', array('fails' => $__login_status['lockout_fails']));
+          $errstring .= $lang->get('user_err_invalid_credentials_lockout', array('fails' => $__login_status['lockout_fails']));
         }
-        else if ( $__login_status['lockout_policy'] == 'captcha' )
+        else if ( getConfig('lockout_policy', 'lockout') == 'captcha' )
         {
           $errstring .= $lang->get('user_err_invalid_credentials_lockout_captcha', array('fails' => $__login_status['lockout_fails']));
         }