我在使用 Parse 重置密码时遇到问题
I'm having trouble resetting passwords with Parse
我正在 Swift 中制作自己的应用程序,并希望包含使用 Parse 重置密码的功能。我的控制台最终显示成功通知,但是当我转到电子邮件以查看 Parse 是否发送电子邮件以重置密码时,我没有收到任何东西。如果你能帮我解决这个问题,我将不胜感激:D I've added a screenshot so that you can see what my console shows.
@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)
}
})
}
对于电子邮件验证,您需要在仪表板中添加设置,如下所示
首先是Parse停止了他的支持,你必须使用Back4App。
我正在 Swift 中制作自己的应用程序,并希望包含使用 Parse 重置密码的功能。我的控制台最终显示成功通知,但是当我转到电子邮件以查看 Parse 是否发送电子邮件以重置密码时,我没有收到任何东西。如果你能帮我解决这个问题,我将不胜感激:D I've added a screenshot so that you can see what my console shows.
@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)
}
})
}
对于电子邮件验证,您需要在仪表板中添加设置,如下所示
首先是Parse停止了他的支持,你必须使用Back4App。