for (let i = 0 ; i
{
if(this.username === user[i].username && this.password === user[i].password){
this.title="Successfully login your account";
this.router.navigate(['/home']);
return;
}else{ this.title = "Please check your username and password (or) create New Account in Register";
return; }
}
return user[i];
}
Aucun commentaire:
Enregistrer un commentaire