Firebase收到无效的电子邮件错误消息

时间:2017-12-05 00:36:11

标签: ios firebase firebase-authentication email-verification

我在创建用户后遇到此错误,并尝试发送验证电子邮件时,无效电子邮件始终收到此错误,而电子邮件已注册且有效。

  

可选(错误域= FIRAuthErrorDomain代码= 17008“缺少发件人”UserInfo = {NSLocalizedDescription =缺少发件人,error_name = ERROR_INVALID_EMAIL})

Auth.auth().currentUser?.sendEmailVerification(completion: { (error) in
    if error != nil {
        print(error.debugDescription)

        let alert = UIAlertController(title: NSLocalizedString("Error", comment: "Error"), message: NSLocalizedString("Unable to send verification, Please check provided email and try again.", comment: "Unable to send verification, Please check provided email and try again."), preferredStyle: .actionSheet)
        alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in
        }))
        self.present(alert, animated: true, completion: nil)
        AppDelegate.instance().dismissActivityIndicatos()
        return
    }

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

它说missing sender。这可能是您的电子邮件模板中的问题。您是否有机会在Firebase控制台中自定义电子邮件发件人字段?