Hi,
So I ve just created new page with authentication (with firebase) and I am wondering how to add alerts to Login page so for example there won’t be errors like “Wrong email format”, or if the email won’t be corrent, the alerts would popout.
My code in ts:
async login(user: User){
const result = this.aFAuth.auth.signInWithEmailAndPassword(user.email, user.password);
this.navCtrl.setRoot(MainPage);
}
I mean, when someone tries to login with wrong email and password, app gets error and it still move forward the user to the next page. How to prevent it?