【发布时间】:2018-11-02 03:02:39
【问题描述】:
我一直无法让 Firebase 发送密码重置电子邮件,其中包含方法 firebase.auth().verifyPasswordResetCode(code) 所需的确认码。
我正在使用sendPasswordResetEmail(email) 方法,电子邮件中包含一个链接,可让用户创建新密码。
由于我对密码设置了一些限制(它们必须包含一个数字),这将打破限制。
我在文档中找不到有关如何将确认码发送到电子邮件以重置密码的任何内容。
这就是我的使用方式:
public sendResetPasswordEmail(email: string): Promise<any> {
return this.fireAgent.firebase.auth().sendPasswordResetEmail(email, {
url: 'http://localhost:8100/',
handleCodeInApp: true
});
}
任何帮助将不胜感激。
【问题讨论】:
-
我自己也在为此苦苦挣扎。唯一提供的答案不起作用,因为
actionCodeSettings对象内的“URL”是您在通过 firebase 重置密码后将导航到的 URL。
标签: angular typescript firebase firebase-authentication ionic3