clear the cookie rather than setting it to false
This commit is contained in:
parent
e837493757
commit
204f055c7e
|
@ -114,7 +114,7 @@ Copyright:
|
||||||
if (session) {
|
if (session) {
|
||||||
Deluge.Client.web.delete_session(session, {
|
Deluge.Client.web.delete_session(session, {
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
Deluge.UI.cookies.set("session", false);
|
Deluge.UI.cookies.clear("session");
|
||||||
this.show();
|
this.show();
|
||||||
},
|
},
|
||||||
scope: this
|
scope: this
|
||||||
|
@ -132,12 +132,12 @@ Copyright:
|
||||||
this.loginForm.items.get('password').setRawValue('');
|
this.loginForm.items.get('password').setRawValue('');
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
Deluge.UI.cookies.set("session", false);
|
Deluge.UI.cookies.clear("session");
|
||||||
this.show();
|
this.show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(result) {
|
failure: function(result) {
|
||||||
Deluge.UI.cookies.set("session", false);
|
Deluge.UI.cookies.clear("session");
|
||||||
this.show();
|
this.show();
|
||||||
},
|
},
|
||||||
scope: this
|
scope: this
|
||||||
|
|
Loading…
Reference in New Issue