重置密码错误通过AWS亚马逊解析服务器

问题描述:

大家好!我在论坛上看到这个问题,但没有答案。所以我决定再次提问。重置密码错误通过AWS亚马逊解析服务器

我在AWS Amazon(EC2)上使用Parse服务器。应用程序是斯威夫特3

所以我尽量为用户重置密码:

PFUser.requestPasswordResetForEmail(inBackground: emailTextField.text!) { (success: Bool, error: Error?) in 
     if success { 
      let alert = UIAlertController(title: "Success", message: "Please check your email and follow the instructions", preferredStyle: UIAlertControllerStyle.alert) 
      let ok = UIAlertAction(title: "Ok", style: UIAlertActionStyle.default, handler: { (UIAlertAction) in 
       self.dismiss(animated: true, completion: nil) 
      }) 
      alert.addAction(ok) 

      self.present(alert, animated: true, completion: nil) 
     } 
     else { 
      print(error?.localizedDescription) 
     } 
    } 

但是当我按下“重置密码”按钮,我得到这个错误:

An appName, publicServerURL, and emailAdapter are required for password reset functionality. 

我认为问题来自AWS部分,但我找不到它。这对我来说是一个重要的项目,请帮助!

谢谢!

+0

您甚至没有使用任何AWS API,您认为这是AWS问题的原因是什么?从错误中可以看出,您没有为Parse服务器密码重置api提供必需的参数。 – mootmoot

+0

原因我已将我的应用程序链接到AWS,并且我看到有人从MailGun讨论同样的问题 – parsjs

+0

让我们知道您正在关注的文档或您将AWS加入您的应用程序或技术方面的具体情况,我们无法做到神奇! – Sam

我使用的是Bitnami AWS的Parse服务器。我通过SSH Java客户端将它连接到Xcode。我在AppDelegate.swift中有此代码。

let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in 
      ParseMutableClientConfiguration.applicationId = "XXX" 
      ParseMutableClientConfiguration.clientKey = "XXX" 
      ParseMutableClientConfiguration.server = "URL" 
     })