Commit bd7005d6 authored by Budi Prasetyo's avatar Budi Prasetyo

reset password with firebase

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