Allowed custom processing functions altogether for AJAX login error handling
authorDan
Sun, 12 Apr 2009 19:24:33 -0400
changeset 899 df88cedf0995
parent 898 c75754f5b1da
child 900 c5409416b61b
Allowed custom processing functions altogether for AJAX login error handling
includes/clientside/static/login.js
--- a/includes/clientside/static/login.js	Sat Apr 11 22:32:45 2009 -0400
+++ b/includes/clientside/static/login.js	Sun Apr 12 19:24:33 2009 -0400
@@ -991,10 +991,14 @@
   switch ( response.error_code )
   {
     default:
-      var ls = $lang.get('user_err_' + response.error_code);
-      if ( ls == 'user_err_' + response.error_code )
-        // Adding response here allows language strings to utilize additional information passed from the error packet
-        ls = $lang.get(response.error_code, response);
+      eval(setHook('ajax_login_process_error'));
+      if ( !ls )
+      {
+        var ls = $lang.get('user_err_' + response.error_code);
+        if ( ls == 'user_err_' + response.error_code )
+          // Adding response here allows language strings to utilize additional information passed from the error packet
+          ls = $lang.get(response.error_code, response);
+      }
       
       return ls;
       break;