如何在React Native中重置Firebase身份验证密码 [英] how to reset firebase auth password in react native
本文介绍了如何在React Native中重置Firebase身份验证密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何在我的本机项目中重置Firebase电子邮件身份验证密码.我想发送一封电子邮件以重置密码.如何使用以下方法做到这一点
I want to know how to reset password of firebase email authentication password in my react-native project . I like to sent an email for resetting the password. How to do that using the following method
firebase.auth().sendPasswordResetEmail
推荐答案
forgotPassword = (Email) => {
firebase.auth().sendPasswordResetEmail(Email)
.then(function (user) {
alert('Please check your email...')
}).catch(function (e) {
console.log(e)
})
}
应该通过电子邮件发送此忘记密码的方法.
An email should be passed for this forgot password method.
这篇关于如何在React Native中重置Firebase身份验证密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文