ios - Firebase iOS 恢复密码

标签 ios swift firebase firebase-authentication

如果我在用 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/

相关文章:

ios - 带有swift的服务器套接字

javascript - 如何在 Firebase 3 中创建用户而不对其进行身份验证?

firebase - 如何使用云功能身份验证触发 flutter/Dart

ios - OpenCart客户密码加密

ios - 使用搜索显示 Controller 时隐藏普通 UITableView

ios - 如何快速从图像创建循环加载器

java - Android Firebase 同步检索数据和 "returning"

ios - 找不到 iPhone X 模拟器。使用 --verbose 标志运行 CLI 以获取更多详细信息

ios - 将多分钟数字(超过 2)分钟转换为 NSDate

ios - 在 UIScrollView 中调整 AVPlayer 的大小