Commit 081b48a3 authored by Budi Prasetyo's avatar Budi Prasetyo

reset password with firebase

parent bd7005d6
......@@ -86,7 +86,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
await FirebaseAuth.instance
.sendPasswordResetEmail(email: emailController.text.trim());
showSnackBar(context, 'Reset Password Sent, Check your email inbox or spam');
Navigator.of(context).popUntil((route) => route.isCurrent);
Navigator.of(context).popAndPushNamed('/login');
} on FirebaseAuthException catch (e){
print(e);
......
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