강제로그아웃 후 발생하는 스크립트에러 수정 및 재로그인 안되는 문제 수정.

This commit is contained in:
leejinho 2019-12-20 11:07:41 +09:00
parent f1b42392e4
commit c289df1c47

View File

@ -157,6 +157,7 @@ export class Effects {
tap(authed => {
// this.ngZone.run(() => {
// location.href = this.router.parseUrl('/account/login').toString();
this.protocolService.disconnect();
this.router.navigate(['/account/login']);
this.appAuthenticationService.logout();
this.store.dispatch(logoutInitialize());
@ -173,7 +174,6 @@ export class Effects {
switchMap(action => {
return this.authenticationProtocolService.logout({}).pipe(
map(res => {
this.protocolService.disconnect();
this.store.dispatch(loginRedirect());
}),
catchError(error => of(error))
@ -266,7 +266,7 @@ export class Effects {
}
}
if (loginInfo.initPw) {
if (!!loginInfo.initPw) {
this.store.dispatch(logout());
const passwordInitStep1Url = this.piService.passwordInitStep1Url({