From: Alan Knowles Date: Tue, 26 Jul 2011 14:08:30 +0000 (+0800) Subject: Pman.Login.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=36ccf49eb80ef724a2605a1bb91d1783cc9fd0c4 Pman.Login.js --- diff --git a/Pman.Login.js b/Pman.Login.js index 5834e9b5..33571c2d 100644 --- a/Pman.Login.js +++ b/Pman.Login.js @@ -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) {