SUPPORT-8897: Fix
This commit is contained in:
parent
247c5fe46c
commit
5a653cac06
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
? reason.error.messages
|
? reason.error.messages
|
||||||
: reason.error.replaceAll('\\', '');
|
: reason.error.replaceAll('\\', '');
|
||||||
if (error) {
|
if (error) {
|
||||||
errorMessage = 'Произошла неизвестная ошибка. Обратитесь к системному администратору';
|
errorMessage = 'Система временно недоступна. Пожалуйста, повторите попытку позже.';
|
||||||
let errorCode = this.extractCode(errorDescription);
|
let errorCode = this.extractCode(errorDescription);
|
||||||
if (errorCode) {
|
if (errorCode) {
|
||||||
errorMessage = EsiaErrorDetail.getDescription(errorCode);
|
errorMessage = EsiaErrorDetail.getDescription(errorCode);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {
|
||||||
HttpEvent,
|
HttpEvent,
|
||||||
HttpHandler,
|
HttpHandler,
|
||||||
HttpInterceptor,
|
HttpInterceptor,
|
||||||
HttpRequest
|
HttpRequest, HttpResponse
|
||||||
} from "@angular/common/http";
|
} from "@angular/common/http";
|
||||||
import {
|
import {
|
||||||
HttpSecurityErrorInterceptor,
|
HttpSecurityErrorInterceptor,
|
||||||
|
|
@ -33,7 +33,7 @@ export class ErvuHttpSecurityErrorInterceptor extends HttpSecurityErrorIntercept
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return from(this.authService.redirectToEsia()).pipe(
|
return from(this.authService.redirectToEsia()).pipe(
|
||||||
map(() => null),
|
map(() => new HttpResponse<any>()),
|
||||||
catchError((err) => {
|
catchError((err) => {
|
||||||
throw err;
|
throw err;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue