X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Login.js;h=33571c2d4bea816f64d9335baf9d9c8acbae7322;hb=36ccf49eb80ef724a2605a1bb91d1783cc9fd0c4;hp=5834e9b508810b963552b49e4ae09fe4e05efad4;hpb=c253e5bd905d43762f1a210e8e2790c5edca0b49;p=Pman.Core 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) {