logout notification is modified
This commit is contained in:
parent
81c3cbe43a
commit
92129ef2d7
@ -127,7 +127,7 @@ export class AppNotificationService {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.store.dispatch(AuthenticationStore.logout());
|
this.store.dispatch(AuthenticationStore.loginRedirect());
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
@ -125,10 +125,9 @@ export class Effects {
|
|||||||
ofType(loginRedirect),
|
ofType(loginRedirect),
|
||||||
tap(authed => {
|
tap(authed => {
|
||||||
this.ngZone.run(() => {
|
this.ngZone.run(() => {
|
||||||
this.router.navigate(['/account/login']).then(() => {
|
this.appAuthenticationService.logout();
|
||||||
this.store.dispatch(logoutInitialize());
|
this.store.dispatch(logoutInitialize());
|
||||||
location.reload();
|
location.href = this.router.parseUrl('/account/login').toString();
|
||||||
});
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
@ -142,7 +141,6 @@ export class Effects {
|
|||||||
switchMap(action => {
|
switchMap(action => {
|
||||||
return this.authenticationProtocolService.logout({}).pipe(
|
return this.authenticationProtocolService.logout({}).pipe(
|
||||||
map(res => {
|
map(res => {
|
||||||
this.appAuthenticationService.logout();
|
|
||||||
this.store.dispatch(loginRedirect());
|
this.store.dispatch(loginRedirect());
|
||||||
}),
|
}),
|
||||||
catchError(error => of(error))
|
catchError(error => of(error))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user