【发布时间】:2021-02-03 00:55:53
【问题描述】:
我将我的颤振应用程序与 firebase 集成,我希望用户重置他们的密码,我的功能如下所示:
此功能可能运行良好,但它发送电子邮件的时间很晚,例如 5 分钟或更长时间。请帮我解决这个问题。我也想知道我这样做对不对。
**它发送验证电子邮件,但发送很晚**
await FirebaseAuth.instance
.sendPasswordResetEmail(email: email)
.then((_) {
setState(() {
_isloading = false;
});
Navigator.of(context).pushNamed(EmailSuccessPage.routeName,
arguments: {'emailType': 'Reset'});
}).catchError((error) {
setState(() {
_isloading = false;
});
if (error.code == 'ERROR_USER_NOT_FOUND') {
_showAlertDialog("No user associated with that Email");
}
if (error.code == 'ERROR_INVALID_EMAIL') {
_showAlertDialog("Invalid Email");
}
});
【问题讨论】:
标签: firebase flutter verification email email-verification