equal
deleted
inserted
replaced
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': |