Add login

parent 611fe657
......@@ -88,6 +88,9 @@ class FirebaseAuthMethods {
// restrict access to certain things using provider
// transition to another page instead of home screen
}
else if(user.emailVerified){
Navigator.pushNamed(context, '/dashboard');
}
} on FirebaseAuthException catch (e) {
showSnackBar(context, e.message!); // Displaying the error message
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment