Pman.Login.js
[Pman.Core] / Pman.Login.js
index 5834e9b..33571c2 100644 (file)
@@ -301,10 +301,9 @@ Pman.Login =  new Roo.util.Observable({
                     //act.result.errorMsg// invalid form element list...
                     
                     Pman.Login.dialog.el.unmask();
-                    Roo.MessageBox.alert("Error",
-                        act.result.errorMsg ? act.result.errorMsg : 
-                        "Login failed - communication error - try again."
-                    );
+                    var msg = act.result.errorMsg || act.result.message;
+                    msg = msg ||   "Login failed - communication error - try again.";
+                    Roo.MessageBox.alert("Error", , msg); 
                               
                 },
                 actioncomplete: function(re, act) {