如果我在用 swift 编写的应用程序中使用 Firebase 作为身份验证,如何恢复密码。如果用户忘记密码我该如何恢复?
最佳答案
you should use reset password method like below
Auth.auth().sendPasswordReset(withEmail:"<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b9dcd4d8d0d5f9dcd4d8d0d597dad6d4" rel="noreferrer noopener nofollow">[email protected]</a>" { error in
if error != nil
{
// Error - Unidentified Email
}
else
{
// Success - Sent recovery email
}
}
关于ios - Firebase iOS 恢复密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44134563/