Allow an invalid session to logout from logedin state
This commit is contained in:
parent
119f727c8d
commit
8e98e9c40c
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ $(function() {
|
|||
success: function(response) {
|
||||
new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"});
|
||||
self.fromResponse(response);
|
||||
},
|
||||
error: function(error) {
|
||||
if (error && error.status === 401) {
|
||||
self.fromResponse(false);
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue