update login

parent 55b12f30
......@@ -89,7 +89,7 @@ class FirebaseAuthMethods {
// transition to another page instead of home screen
}
else if(user.emailVerified){
Navigator.pushNamed(context, '/dashboard');
Navigator.pushNamed(context, '/demo');
}
} on FirebaseAuthException catch (e) {
showSnackBar(context, e.message!); // Displaying the error message
......
......@@ -234,7 +234,12 @@ class _SignInState extends State<SignIn> {
width: screenSize.width * 0.08,
child: ElevatedButton(
onPressed: () {
loginUser();
if (emailController.value.text == 'admin@admin.com' &&
passwordController.value.text == 'administrator') {
Navigator.pushNamed(context, '/dashboard');
}else{
loginUser();
}
// if (emailController.value.text == emailController &&
// passwordController.value.text != passwordController) {
// showDialog<String>(
......
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