includes/clientside/static/login.js
changeset 899 df88cedf0995
parent 887 cb96d038baff
child 907 44851d7e9bda
equal deleted inserted replaced
898:c75754f5b1da 899:df88cedf0995
   989     return response.error_code;
   989     return response.error_code;
   990   }
   990   }
   991   switch ( response.error_code )
   991   switch ( response.error_code )
   992   {
   992   {
   993     default:
   993     default:
   994       var ls = $lang.get('user_err_' + response.error_code);
   994       eval(setHook('ajax_login_process_error'));
   995       if ( ls == 'user_err_' + response.error_code )
   995       if ( !ls )
   996         // Adding response here allows language strings to utilize additional information passed from the error packet
   996       {
   997         ls = $lang.get(response.error_code, response);
   997         var ls = $lang.get('user_err_' + response.error_code);
       
   998         if ( ls == 'user_err_' + response.error_code )
       
   999           // Adding response here allows language strings to utilize additional information passed from the error packet
       
  1000           ls = $lang.get(response.error_code, response);
       
  1001       }
   998       
  1002       
   999       return ls;
  1003       return ls;
  1000       break;
  1004       break;
  1001     case 'locked_out':
  1005     case 'locked_out':
  1002       if ( response.respawn_info.lockout_info.lockout_policy == 'lockout' )
  1006       if ( response.respawn_info.lockout_info.lockout_policy == 'lockout' )