问题标签 [createuser]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
59 浏览

mysql - 创建用户 MySQL

删除表时出错:

不删除表的错误:

我的一些代码示例:

我不完全知道出了什么问题。我查了一下,它说添加刷新权限,但我仍然得到相同的两个错误。

0 投票
0 回答
45 浏览

android - 可以在 Web API 中为移动和 Web 应用程序注册一个 API 吗?

我想知道当我编写 Web API 来为移动和 Angular 2 客户端提供服务时,我应该为它们(移动和 Angular 2)编写一个注册 API 吗?或者我应该分别为每一个写。我的网络和移动注册用户视图模型不同。我需要网络注册用户中的一些字段,而我在移动设备中不需要这些字段,谢谢

0 投票
1 回答
895 浏览

javascript - 无法在服务器 NodeJS 上的 Mongo 中创建用户(或基于自定义的角色)

我正在尝试直接从我们的 Express 服务器在我的数据库上创建用户,使用 Mongo 3.4 作为数据库。这是服务器的代码:

但是,每当客户端尝试插入新用户时,它实际上是在用户集合中创建的,但不是作为数据库的用户,因为我收到以下错误:TypeError: db.createUser is not a function web_1 | 在 /app/app.js:47:6。

我尝试使用 db.addUser 代替,但是,自 Mongo 2.6 以来已弃用,并且也无法正常工作,并且 db.adminCommand 出现相同的错误, db.adminCommand 不是函数。在此之前,我努力使用 Node 在数据库中创建自定义角色,并决定也通过 Mongo shell 来实现,但在数据库中逐个添加用户时,这不是一个选项。

当我在 Mongo shell 中使用这些函数时,命令正在运行,所以我想它来自我在服务器中实现 Mongo 的方式(通过 Docker),或者由于 Javascript 的一些限制。知道会是什么吗?

提前感谢社区!

0 投票
1 回答
691 浏览

swift - UserInfo={NSLocalizedDescription=电子邮件地址已被另一个帐户使用。, error_name=ERROR_EMAIL_ALREADY_IN_USE}

嘿伙计们,实际上我在这里尝试了两件事:- 尝试创建一个新帐户并尝试打开一个类似于登录后出现的屏幕,但它显示“电子邮件已存在错误”。

@IBAction func CreateAcccountButton(_ sender: AnyObject) {

Auth.auth().createUser(withEmail: email, password: password, 完成: { (user, error) in

0 投票
3 回答
890 浏览

amazon-web-services - AWS Lambda 盐和哈希错误

我一直在使用 AWS Lambda in Action - Poccia 的源代码在用户池和身份池中创建用户。我不断收到错误:

我是 AWS 服务的新手,不确定为什么会发生此错误。下面是我尝试使用的 Lambda 函数,下面是它引用的 cryptoUtils.js 脚本。

如果有人有任何建议或需要更多信息来帮助我确定错误发生的原因,我将不胜感激。谢谢你。

0 投票
0 回答
303 浏览

mongodb - auth0 自定义数据库操作脚本 - 如何访问 user_id?

我正在使用 auth0,我正在创建一个在 Action Scripts 下创建的脚本,以将用户保存到我的 mongoDB 数据库中。我只需要保存emailand user_id,但我找不到user_id?

代码如下,但user唯一返回: {"tenant":"tenant-name","connection":"MongoDB-MainDB","email":"xxx","password":"xxx","debug":true}

这是我的代码(这基本上是提供的示例代码auth0):

auth0 教程供参考:https ://auth0.com/docs/connections/database/custom-db

0 投票
1 回答
28 浏览

meteor - 我在 Accounts.createUser() 配置中做错了什么?

我似乎无法超越Accounts.createUser()代码中的界限。怎么了?

我有:

我能够Meteor.user().services.google.email在浏览器控制台中正确看到结果,这是我登录后自己的电子邮件地址。我还能够看到Meteor.user().services.google.accessToken.

现在对于主题中的代码:

我似乎无法超越Accounts.createUser()界限。这是因为,我没有看到任何错误消息,也没有看到console.log()以下函数/回调的结果 in/after Accounts.createUser()

0 投票
1 回答
697 浏览

php - wordpress 用户注册可选文件与 php

WordPress 注册默认功能只有 3 个选项:

如果我想添加一些其他文件,比如agesomtehing else! 使用书面 PHP 表单,我该怎么做?

wp_users有一些列,例如 user_login & user_email $ user_status. 我可以添加新列age吗?而且,如果可以的话,我怎样才能在 php 页面上注册它?

喜欢的功能:

如果不可能,我该如何创建一个新表,例如wp_specialusers 使用 PHP 访问它,例如:

我想要这样

很多

0 投票
1 回答
371 浏览

session-cookies - Drupal 8 CiviCRM 创建用户无效会话密钥

我有一个自定义模块,我在其中为具有不同角色的 drupal 用户创建自定义注册表单。在我安装CiviCRM之前它运行良好

提交表单时,它会说:

抱歉,由于出现错误,我们目前无法满足您的要求。您可能需要联系您的管理员或服务提供商,详细了解发生这种情况时您正在执行的操作。我们无法加载请求的网页。此页面需要在您的浏览器设置中启用 cookie。请检查此设置并启用 cookie(如果未启用)。然后再试一次。如果此错误仍然存​​在,请联系站点管理员寻求帮助。

站点管理员:​​此错误可能表明用户正在使用配置的基本 URL 以外的域或 URL 访问此页面。示例:基本 URL 是http://example.org,但有些用户通过http://www.example.org或类似的域别名访问该页面http://myotherexample.org

错误类型:找不到有效的会话密钥。

我的代码:

检查了我的 Civi 资源网址,但它们是正确的。

Drupal:8.4.0

CiviCRM:4.7.28

0 投票
2 回答
474 浏览

php - Typo 3: Create user on FE login

The situation:
I build an authentication service that uses Basic Authentication to check if the user exists on an external database and fetches some data. The users in question only exist on the external database.

The problem:
Typo3 needs to have an user entry in the fe_user table to login the user. So whenever this entry does not exist, the user cannot login.

What I want to do:
Create the user in the authentication service to avoid using a sql dump from the external database and ensure that synchronisation is possible.

The relevant code:

the ext_localconf.php file: