gpt4 book ai didi

使用 Parse 进行 iOS 开发 : "Forgot password" button outcome

转载 作者:行者123 更新时间:2023-11-30 14:09:32 25 4
gpt4 key购买 nike

关于current Parse iOS Guide :当用户忘记密码时可以使用一种方法:

PFUser.requestPasswordResetForEmailInBackground("email@example.com")

这个方法显然没有回调。

如何通知某个用户给定的电子邮件与数据库中的任何用户都不匹配? (使用 swift )

P.S.:我不想讨论向用户提供这些信息是否有用,我想知道在这种特定情况下如何处理这种情况。

最佳答案

您有几个选择。您可以使用 requestPasswordResetForEmail 方法,该方法返回一个 BOOL 值,指示成功或失败(例如,未找到用户)。

还有一个 block 版本的 + (void)requestPasswordResetForEmailInBackground:(NSString *)email block:(PF_NULLABLE PFBooleanResultBlock)block

关于使用 Parse 进行 iOS 开发 : "Forgot password" button outcome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31908202/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com