mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Change handling of (token) errors due to #1706
This commit is contained in:
parent
02ea6c4359
commit
d00c953c88
25 changed files with 80 additions and 69 deletions
|
|
@ -118,9 +118,9 @@ export class LoginUserView extends AbstractViewLogin {
|
|||
if (Notifications.InvalidInputArgument == iError) {
|
||||
iError = Notifications.AuthError;
|
||||
}
|
||||
this.submitError(getNotification(iError, oData?.ErrorMessage,
|
||||
this.submitError(getNotification(iError, oData?.message,
|
||||
Notifications.UnknownError));
|
||||
this.submitErrorAdditional(oData?.ErrorMessageAdditional || oData?.message);
|
||||
this.submitErrorAdditional(oData?.messageAdditional || oData?.message);
|
||||
} else {
|
||||
rl.setData(oData.Result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
|||
(iError/*, oData*/) => {
|
||||
if (iError) {
|
||||
AccountUserStore.loading(false);
|
||||
alert(getNotification(iError).replace('%EMAIL%', email));
|
||||
alert('Account error: ' + getNotification(iError).replace('%EMAIL%', email));
|
||||
if (account.isAdditional()) {
|
||||
showScreenPopup(AccountPopupView, [account]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue