includes/clientside/static/login.js
changeset 1210 ad49fa34ff3c
parent 1176 5c98b9f181f0
child 1227 bdac73ed481e
equal deleted inserted replaced
1209:944d2fe1fb1e 1210:ad49fa34ff3c
  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         {