我在使用Parse重置密码时遇到问题

时间:2021-10-23 22:26:44

I am making my own app in Swift, and wanted to include the feature of resetting passwords using Parse. My console eventually shows a successful notice, but when I go to the email to see if Parse sent the email to reset password, I don't receive anything. Would really appreciate it if you could help me sort this issue :D I've added a screenshot so that you can see what my console shows.

我正在Swift中创建自己的应用程序,并希望包含使用Parse重置密码的功能。我的控制台最终显示成功通知,但当我转到电子邮件,看看Parse是否发送了电子邮件重置密码,我没有收到任何东西。如果你能帮助我解决这个问题,我将非常感激:D我添加了一个截图,以便你可以看到我的控制台显示的内容。

 @IBAction func recoverPasswordButton(_ sender: Any) {

    PFUser.requestPasswordResetForEmail(inBackground: emailTextField.text!, block: { (success, error) in

        if self.emailTextField != nil {

            self.displayAlert(title: "Check your email", message: "A link has been sent to recover your password. Follow the instructions.")

            print("A link to recover your password has been sent")

        } else {

            var errorText = "Unknown error: please try again"

            if let error = error {

                errorText = error.localizedDescription
            }
            self.displayAlert(title: "Email is not valid", message: errorText)

        }
    })

}

1 个解决方案

#1


0  

For Email verification, You need to add the setting in the dashboard like below

对于电子邮件验证,您需要在仪表板中添加设置,如下所示

The first thing is that Parse stops his support, you have to use Back4App.

首先是Parse停止了他的支持,你必须使用Back4App。

我在使用Parse重置密码时遇到问题

#1


0  

For Email verification, You need to add the setting in the dashboard like below

对于电子邮件验证,您需要在仪表板中添加设置,如下所示

The first thing is that Parse stops his support, you have to use Back4App.

首先是Parse停止了他的支持,你必须使用Back4App。

我在使用Parse重置密码时遇到问题