equal
deleted
inserted
replaced
1034 }); |
1034 }); |
1035 break; |
1035 break; |
1036 } |
1036 } |
1037 case 'invalid_credentials': |
1037 case 'invalid_credentials': |
1038 var base = $lang.get('user_err_invalid_credentials'); |
1038 var base = $lang.get('user_err_invalid_credentials'); |
1039 if ( response.respawn_info.locked_out ) |
1039 if ( response.respawn_info.locked_out.locked_out ) |
1040 { |
1040 { |
1041 base += ' '; |
1041 base += ' '; |
1042 var captcha_blurb = ''; |
1042 var captcha_blurb = ''; |
1043 switch(response.respawn_info.lockout_info.lockout_policy) |
1043 switch(response.respawn_info.lockout_info.lockout_policy) |
1044 { |
1044 { |
1046 captcha_blurb = $lang.get('user_err_locked_out_captcha_blurb'); |
1046 captcha_blurb = $lang.get('user_err_locked_out_captcha_blurb'); |
1047 break; |
1047 break; |
1048 case 'lockout': |
1048 case 'lockout': |
1049 break; |
1049 break; |
1050 default: |
1050 default: |
1051 base += 'WTF? Shouldn\'t be locked out with lockout policy set to disable.'; |
1051 base += 'WTF? Shouldn\'t be locked out with lockout policy set to disable. '; |
1052 break; |
1052 break; |
1053 } |
1053 } |
1054 base += $lang.get('user_err_locked_out', { |
1054 base += $lang.get('user_err_locked_out', { |
1055 captcha_blurb: captcha_blurb, |
1055 captcha_blurb: captcha_blurb, |
1056 lockout_threshold: response.respawn_info.lockout_info.lockout_threshold, |
1056 lockout_threshold: response.respawn_info.lockout_info.lockout_threshold, |