equal
deleted
inserted
replaced
1036 switch(response.mode) |
1036 switch(response.mode) |
1037 { |
1037 { |
1038 case 'login_failure': |
1038 case 'login_failure': |
1039 // Generic login user error. |
1039 // Generic login user error. |
1040 var error = '', x; |
1040 var error = '', x; |
1041 if ( (x = $lang.get(response.error)) != response.error ) |
1041 if ( (x = $lang.get(response.error)) != response.error || ! (/^[a-z0-9_]+/).test(response.error) ) |
1042 error = x; |
1042 error = x; |
1043 else |
1043 else |
1044 error = $lang.get('user_err_' + response.error); |
1044 error = $lang.get('user_err_' + response.error); |
1045 if ( response.lockout.active && response.lockout.policy == 'lockout' ) |
1045 if ( response.lockout.active && response.lockout.policy == 'lockout' ) |
1046 { |
1046 { |