如何禁用私人networking中gitlab的电子邮件确认

最近我安装了我的局域网的gitlab。 当我的用户尝试创build他们的账户时,他们正在收到电子邮件确认消息。 现在我的问题是我想禁用整个电子邮件确认function和一切。 对于那个什么文件我必须在gitlabconfiguration文件中configuration如何做到这一点? 哪些选项我必须改变我在ruby非常差,请详细解释。

您好,我最近需要补丁gitlab跳过LDAP用户的确认。 我不认为这是一个很好的补丁,但它的工作原理。

vim /opt/gitlab/embedded/service/gitlab-rails/lib/api/users.rb:

post do authenticated_as_admin! ... # <patch: if attrs[:extern_uid] # skip confirmation for LDAP users user.skip_confirmation! # end # > if user.save present user, with: Entities::UserFull else 

重启显然是必需的(gitlab-ctl restart)

根据google群组中的回答: https : //groups.google.com/forum/#!topic/ gitlabhq/ ctf8x0xpOOE

从版本7.9.0可以通过在JSON中包含一个confirm参数来跳过电子邮件确认。 例如,如果你想创build一个没有电子邮件确认的用户Jenkins ,你需要在你的本地gitlab API上使用下面的payload:

 POST /api/v3/users?private_token=<administrator token> { "email" : "[email protected]", "password" : "123456", "name" : "Jenkins CI Server", "username" : "jenkins", "confirm" : "no" } 

参数emailpasswordnameusername是强制性的。 这个提交引入了更改。 您可能会看到,confirm参数也可能是false0f来禁用电子邮件确认。