mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-29 01:36:44 +03:00
Improved InvalidToken handling for #1653
This commit is contained in:
parent
7f64dee54b
commit
288ff23f2b
3 changed files with 18 additions and 7 deletions
|
|
@ -10,9 +10,9 @@ const getURL = (add = '') => serverRequest('Json') + pString(add),
|
|||
checkResponseError = data => {
|
||||
const err = data ? data.ErrorCode : null;
|
||||
if (Notifications.InvalidToken === err) {
|
||||
console.error(getNotification(err));
|
||||
console.error(getNotification(err) + ` (${data.ErrorMessageAdditional})`);
|
||||
// alert(getNotification(err));
|
||||
rl.logoutReload();
|
||||
setTimeout(rl.logoutReload, 5000);
|
||||
} else if ([
|
||||
Notifications.AuthError,
|
||||
Notifications.ConnectionError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue