web/satellite: show error for rate limited MFA logins
This change fixes an issue where errors were not displayed for login attempts that failed due to rate limiting. Change-Id: Ia3c7fccf434ad62bb252f4215676b1f32903ac53
This commit is contained in:
parent
881137539c
commit
0f3ff66485
@ -161,6 +161,7 @@ import { FetchState } from '@/utils/constants/fetchStateEnum';
|
||||
import { Validator } from '@/utils/validation';
|
||||
import { ErrorUnauthorized } from '@/api/errors/ErrorUnauthorized';
|
||||
import { ErrorBadRequest } from '@/api/errors/ErrorBadRequest';
|
||||
import { ErrorTooManyRequests } from '@/api/errors/ErrorTooManyRequests';
|
||||
import { TokenInfo } from '@/types/users';
|
||||
import { LocalData } from '@/utils/localData';
|
||||
import { useNotify } from '@/utils/hooks';
|
||||
@ -430,7 +431,7 @@ async function login(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isMFARequired.value) {
|
||||
if (isMFARequired.value && !(error instanceof ErrorTooManyRequests)) {
|
||||
if (error instanceof ErrorBadRequest || error instanceof ErrorUnauthorized) {
|
||||
notify.error(error.message, null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user