Pman.Login.js
[Pman.Core] / Pman.Login.js
index dc39a3d..4adb8e0 100644 (file)
@@ -301,8 +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) {