【问题标题】:How to reset a password using parse api?如何使用 parse api 重置密码?
【发布时间】:2014-04-03 06:32:05
【问题描述】:

我使用 parse api 作为服务提供商和数据中心,所以我的所有用户信息都存储在解析服务器中,现在我想在我的 ios 应用程序中添加一个功能来重置密码,但不知道如何重置使用解析 api 的密码。

谁能帮助我知道如何使用 parse api 来重置用户的密码?

【问题讨论】:

    标签: ios parsing passwords reset


    【解决方案1】:
            PFUser.requestPasswordResetForEmailInBackground(emailTextField.text, block: { (succeeded: Bool, error: NSError?) -> Void in
                if error == nil {
                    if succeeded { // SUCCESSFULLY SENT TO EMAIL
                               println("Reset email sent to your inbox");
                    }
                    else { // SOME PROBLEM OCCURED
                    }
                }
                else { //ERROR OCCURED, DISPLAY ERROR MESSAGE
                     println(error!.description);
                }
            });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-24
      • 2020-06-06
      • 2016-04-15
      • 1970-01-01
      • 1970-01-01
      • 2018-01-01
      • 1970-01-01
      • 2020-09-27
      相关资源
      最近更新 更多