fix
This commit is contained in:
parent
e70a5c1b81
commit
c5b5f1f1e8
1 changed files with 1 additions and 4 deletions
|
|
@ -45,7 +45,6 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (code && state) {
|
if (code && state) {
|
||||||
this.progressIndicationService.showProgressBar();
|
|
||||||
const params = new HttpParams().set('code', code).set('state', state);
|
const params = new HttpParams().set('code', code).set('state', state);
|
||||||
this.httpClient.get("esia/auth",
|
this.httpClient.get("esia/auth",
|
||||||
{
|
{
|
||||||
|
|
@ -59,7 +58,6 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(
|
.then(
|
||||||
() => {
|
() => {
|
||||||
this.progressIndicationService.hideProgressBar();
|
|
||||||
window.open(url.origin + url.pathname, "_self");
|
window.open(url.origin + url.pathname, "_self");
|
||||||
})
|
})
|
||||||
.catch(reason => {
|
.catch(reason => {
|
||||||
|
|
@ -67,8 +65,7 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
json.messages.forEach((errorMessage) => {
|
json.messages.forEach((errorMessage) => {
|
||||||
this.messageService.error(errorMessage, json);
|
this.messageService.error(errorMessage, json);
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
.finally(() => this.progressIndicationService.hideProgressBar());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue