sor*_*ink 2 ios firebase swift firebase-authentication
如果我在使用swift编写的应用程序中使用Firebase作为身份验证,我该如何恢复密码.如果用户忘记了密码,我该如何实现其恢复?
您应该使用如下所示的重置密码方法
Auth.auth().sendPasswordReset(withEmail:"email@email.com" { error in
if error != nil
{
// Error - Unidentified Email
}
else
{
// Success - Sent recovery email
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1248 次 |
| 最近记录: |