Verificacion de estado log in
This commit is contained in:
parent
262897d07c
commit
b57f2d485f
|
@ -135,6 +135,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
|||
}
|
||||
|
||||
login(): void {
|
||||
debugger;
|
||||
|
||||
this.loginService
|
||||
.login({
|
||||
username: this.loginForm.get('username')!.value,
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue