From: Alan Knowles Date: Tue, 26 Jul 2011 14:16:04 +0000 (+0800) Subject: Pman.Login.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b46ef0c0cb3acace0fdd00efa3747af08d84370f Pman.Login.js --- diff --git a/Pman.Login.js b/Pman.Login.js index 4adb8e02..caa822f5 100644 --- a/Pman.Login.js +++ b/Pman.Login.js @@ -450,6 +450,9 @@ Pman.Login = new Roo.util.Observable({ if (this.disabled) { return; } + + + this.callback = cb; // used for non-pman usage.. modal = modal || false; if (Pman.Login.authUserId < 0) { // logout!? @@ -480,7 +483,10 @@ Pman.Login = new Roo.util.Observable({ this.dialog.show(); this.dialog.el.unmask(); this.resizeToLogo.defer(1000,this); - + if (!Roo.state.Manager.getProvider().expires) { + Roo.state.Manager.setProvider(new Roo.state.CookieProvider()); + } + this.form.setValues({ 'username' : Roo.state.Manager.get('Pman.Login.username.'+appNameShort, ''),