diff --git a/projects/ucap-webmessenger-app/src/app/resolvers/messenger.resolver.ts b/projects/ucap-webmessenger-app/src/app/resolvers/messenger.resolver.ts index 2eee9a12..20066cce 100644 --- a/projects/ucap-webmessenger-app/src/app/resolvers/messenger.resolver.ts +++ b/projects/ucap-webmessenger-app/src/app/resolvers/messenger.resolver.ts @@ -144,8 +144,6 @@ export class AppMessengerResolver implements Resolve { companyGroupCode: 'LG' }) ); - - // this.store.dispatch(AuthenticationStore.postLogin({ loginRes })); }), withLatestFrom( this.store.pipe( @@ -189,6 +187,7 @@ export class AppMessengerResolver implements Resolve { loginRes }) ); + this.store.dispatch(AuthenticationStore.postLogin({ loginRes })); resolve(); }, err => { diff --git a/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts b/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts index c1b40ef0..7eb28f8e 100644 --- a/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/account/authentication/effects.ts @@ -58,6 +58,7 @@ import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type'; +import { ProtocolService } from '@ucap-webmessenger/protocol'; @Injectable() export class Effects { @@ -128,13 +129,13 @@ export class Effects { this.actions$.pipe( ofType(loginRedirect), tap(authed => { - this.ngZone.run(() => { - // location.href = this.router.parseUrl('/account/login').toString(); - this.router.navigate(['/account/login']).then(() => { - this.appAuthenticationService.logout(); - this.store.dispatch(logoutInitialize()); - }); - }); + // this.ngZone.run(() => { + // location.href = this.router.parseUrl('/account/login').toString(); + this.appAuthenticationService.logout(); + this.store.dispatch(logoutInitialize()); + + this.router.navigate(['/account/login']); + // }); }) ), { dispatch: false } @@ -147,6 +148,7 @@ export class Effects { switchMap(action => { return this.authenticationProtocolService.logout({}).pipe( map(res => { + this.protocolService.disconnect(); this.store.dispatch(loginRedirect()); }), catchError(error => of(error)) @@ -218,8 +220,8 @@ export class Effects { height: '500px', disableClose: true, data: { - title: '개인정보 동의' - // html: `