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)
}
})
}