python - 火力地堡 "message": "PASSWORD_LOGIN_DISABLED" response when trying to authenticate

标签 python firebase firebase-authentication

我完全按照此处提到的步骤进行操作:

https://github.com/thisbejim/Pyrebase/blob/master/README.md

但我收到以下错误:

"error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "PASSWORD_LOGIN_DISABLED"
   }
  ],
  "code": 400,
  "message": "PASSWORD_LOGIN_DISABLED"
 }
}

最佳答案

Firebase 在控制台内有不同的身份验证方法,例如电子邮件、Google、Facebook、Twitter 等。

因此,请确保您(在本例中)已激活电子邮件/密码登录方法:

  1. 转到控制台。
  2. 点击侧边栏上的身份验证菜单。
  3. 在登录方法内确保有“电子邮件/密码”选项。

此外,请确保您已在“用户”选项卡上创建了用户。

另一方面,您可以使用相同的 Pyrebase 库创建用户。

auth.create_user_with_email_and_password(email, password)

查看 Example Code API 内部。

关于python - 火力地堡 "message": "PASSWORD_LOGIN_DISABLED" response when trying to authenticate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39704009/

相关文章:

ios - Swift Firebase Like Post in Table View

firebase - 如何使用 angular 通用和 firebase 托管为延迟加载的路由配置服务器端渲染?

android - java.lang.ClassNotFoundException : com. google.android.gms.common.GoogleApiAvailability 尝试将 arcore 与 mediapipe 集成时发生

Firebase 部署不更新 JS 文件

python - Mako 认为我的模板在 if 语句后有一个 'pass',即使回溯显示没有一个

firebase - 使用 Firebase UID 作为二维码标签是否安全?

javascript - 在 vuex + Firebase 应用程序中获取使用重定向方法登录的结果

python - x-y 平面上的热图,以 z 为权重

python - 我可以在拟合之前在 python 中修复高斯混合模型的一个组件的平均值吗?

python - 动态比较常见事件的列表