angularjs - simpleLoginTool 在我尝试注册新用户时给我 "Error: The specified authentication type is not enabled for this Firebase"

标签 angularjs firebase angularfire yeoman-generator-angular firebasesimplelogin

我正在使用 Firebase、AngularFire 应用程序创建一个 AngularJS、Yeoman 堆栈,并使用 generator-angularfire ( https://github.com/firebase/generator-angularfire ) 来设置我的 simpleLoginTools。我只下载了电子邮件/密码验证,因为身份验证的唯一要点是我需要一些用户用于管理目的来为站点创建新内容和销毁旧内容。但是,当我转到我的“example.com/#/login”并尝试通过电子邮件和密码注册新用户时,它给了我一个

Error: The specified authentication type is not enabled for this Firebase.

是因为我的应用程序/Firebase 数据库中没有 User 模型吗?如果是这样,我该如何去创建一个?如果不是,我该如何克服这个错误?

最佳答案

在这里写答案是因为我在评论中写下了。
发生这种情况是因为您没有在 firebase 中启用密码身份验证。

为此,您必须转到登录和身份验证部分,最后您将看到启用电子邮件和密码身份验证
enter image description here

关于angularjs - simpleLoginTool 在我尝试注册新用户时给我 "Error: The specified authentication type is not enabled for this Firebase",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25088907/

相关文章:

html - 如何更改进度条 Angular 指令的颜色

java - 如何验证/检查 Firebase 数据库中是否存在字符串值 (Android)

java - 如何在此读取方法 firebase 中更改我的值

java - 显示 Firebase 存储中的数据

javascript - 如何从自定义 Kendo UI 数据源访问 Javascript 函数

javascript - 单击数据 AngularJS 后过滤表

javascript - 如果我在两个模块中注册了两个同名的不同指令,最后注册的会赢吗?

javascript - 在没有angularfire的情况下以 Angular 6初始化firebase

AngularFireAuth。使用附加字段创建用户

angularjs - Excel 文件下载 无法使用 exceljs 在 node.js 中工作