friendlier login error prompt
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Sep 2006 18:57:38 +0000 (18:57 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Sep 2006 18:57:38 +0000 (18:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6143 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/auth/session.js

index a4a20f5..80baa7b 100644 (file)
@@ -63,12 +63,12 @@ auth.session.prototype = {
                                                        this.key = robj.payload.authtoken;
                                                        this.authtime = robj.payload.authtime;
                                                } else {
-                                                       this.error.standard_unexpected_error_alert('auth.session.init',robj);
+                                                       //this.error.standard_unexpected_error_alert('auth.session.init',robj);
                                                        throw(robj);
                                                }
                                        break;
                                        default:
-                                       obj.error.standard_unexpected_error_alert('auth.session.init',robj);
+                                       //obj.error.standard_unexpected_error_alert('auth.session.init',robj);
                                        throw(robj);
                                        break;
                                }
@@ -88,7 +88,8 @@ auth.session.prototype = {
                        }
 
                } catch(E) {
-                       obj.error.standard_unexpected_error_alert('Error on auth.session.init()',E); 
+                       alert('Login failed.  Please check your Server Hostname, Username, Password, and your CAPS LOCK key.');
+                       //obj.error.standard_unexpected_error_alert('Error on auth.session.init()',E); 
 
                        if (typeof this.on_init_error == 'function') {
                                this.error.sdump('D_AUTH','auth.session.on_init_error()\n');