Verificacion de estado log in

This commit is contained in:
Paola 2021-07-23 00:41:12 -06:00
parent 262897d07c
commit b57f2d485f
2 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
}
login(): void {
debugger;
this.loginService
.login({
username: this.loginForm.get('username')!.value,

View File

@ -12,6 +12,7 @@ export class LoginService {
constructor(private accountService: AccountService, private authServerProvider: AuthServerProvider) {}
login(credentials: Login): Observable<Account | null> {
debugger;
return this.authServerProvider.login(credentials).pipe(mergeMap(() => this.accountService.identity(true)));
}