From b57f2d485f092a55ce334843c6c0bb6d518b7c0b Mon Sep 17 00:00:00 2001 From: Paola Date: Fri, 23 Jul 2021 00:41:12 -0600 Subject: [PATCH] Verificacion de estado log in --- src/main/webapp/app/login/login.component.ts | 2 ++ src/main/webapp/app/login/login.service.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/webapp/app/login/login.component.ts b/src/main/webapp/app/login/login.component.ts index e2d8b24..3c9ddfe 100644 --- a/src/main/webapp/app/login/login.component.ts +++ b/src/main/webapp/app/login/login.component.ts @@ -135,6 +135,8 @@ export class LoginComponent implements OnInit, AfterViewInit { } login(): void { + debugger; + this.loginService .login({ username: this.loginForm.get('username')!.value, diff --git a/src/main/webapp/app/login/login.service.ts b/src/main/webapp/app/login/login.service.ts index bc97be6..8e24e3d 100644 --- a/src/main/webapp/app/login/login.service.ts +++ b/src/main/webapp/app/login/login.service.ts @@ -12,6 +12,7 @@ export class LoginService { constructor(private accountService: AccountService, private authServerProvider: AuthServerProvider) {} login(credentials: Login): Observable { + debugger; return this.authServerProvider.login(credentials).pipe(mergeMap(() => this.accountService.identity(true))); }