Comunicación con backend. Permite cargar un usuario de la BD
This commit is contained in:
@@ -20,12 +20,12 @@ export class LoginPage implements OnInit {
|
||||
this.user = this.loginService.user;
|
||||
}
|
||||
|
||||
async login() {
|
||||
login() {
|
||||
|
||||
this.username = (<HTMLInputElement>document.getElementById("username")).value;
|
||||
this.password = (<HTMLInputElement>document.getElementById("password")).value;
|
||||
this.user = await this.loginService.validateUser(this.username, this.password);
|
||||
console.log(this.user.username);
|
||||
this.loginService.validateUser(this.username, this.password)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user