mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-30 02:06:44 +03:00
Bugfix: invalid settingsGet in dev/Stores/Admin/App.js
Cleanup login/logout location reloading
This commit is contained in:
parent
aeb5275648
commit
097fb4896d
13 changed files with 51 additions and 92 deletions
|
|
@ -60,17 +60,15 @@ class AbstractAjaxRemote {
|
|||
}
|
||||
|
||||
if (TOKEN_ERROR_LIMIT < GlobalsData.iTokenErrorCount) {
|
||||
if (GlobalsData.__APP__ && GlobalsData.__APP__.loginAndLogoutReload) {
|
||||
GlobalsData.__APP__.loginAndLogoutReload(false, true);
|
||||
}
|
||||
rl.logoutReload();
|
||||
}
|
||||
|
||||
if (oData.ClearAuth || oData.Logout || AJAX_ERROR_LIMIT < GlobalsData.iAjaxErrorCount) {
|
||||
if (GlobalsData.__APP__) {
|
||||
rl.hash.clear();
|
||||
|
||||
if (!oData.ClearAuth && GlobalsData.__APP__.loginAndLogoutReload) {
|
||||
GlobalsData.__APP__.loginAndLogoutReload(false, true);
|
||||
if (!oData.ClearAuth) {
|
||||
rl.logoutReload();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue