mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed logging out
This commit is contained in:
@ -62,6 +62,7 @@ App.Auth = function(jQuery, util, api, appState, promise) {
|
||||
function logout() {
|
||||
return promise.make(function(resolve, reject) {
|
||||
jQuery.removeCookie('auth');
|
||||
appState.set('loginToken', null);
|
||||
return loginAnonymous().then(resolve).fail(reject);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user