plugins/SpecialUserFuncs.php
changeset 1032 9e61f16a8e47
parent 989 79d558a94798
child 1081 745200a9cc2a
equal deleted inserted replaced
1031:8a4b75e73137 1032:9e61f16a8e47
   169       case 'too_big_for_britches':
   169       case 'too_big_for_britches':
   170         $errstring = $lang->get('user_err_too_big_for_britches');
   170         $errstring = $lang->get('user_err_too_big_for_britches');
   171         break;
   171         break;
   172       case 'invalid_credentials':
   172       case 'invalid_credentials':
   173         $errstring = $lang->get('user_err_invalid_credentials');
   173         $errstring = $lang->get('user_err_invalid_credentials');
   174         if ( $__login_status['lockout_policy'] == 'lockout' )
   174         if ( getConfig('lockout_policy', 'lockout') == 'lockout' )
   175         {
   175         {
   176           $errstring .= $lang->get('err_invalid_credentials_lockout', array('fails' => $__login_status['lockout_fails']));
   176           $errstring .= $lang->get('user_err_invalid_credentials_lockout', array('fails' => $__login_status['lockout_fails']));
   177         }
   177         }
   178         else if ( $__login_status['lockout_policy'] == 'captcha' )
   178         else if ( getConfig('lockout_policy', 'lockout') == 'captcha' )
   179         {
   179         {
   180           $errstring .= $lang->get('user_err_invalid_credentials_lockout_captcha', array('fails' => $__login_status['lockout_fails']));
   180           $errstring .= $lang->get('user_err_invalid_credentials_lockout_captcha', array('fails' => $__login_status['lockout_fails']));
   181         }
   181         }
   182         break;
   182         break;
   183       case 'backend_fail':
   183       case 'backend_fail':