gitlab]如何禁用用户确认电子邮件

shi*_*ang 7 email confirmation gitlab

目前,我正在使用Gitlab,我喜欢使用这个伟大的.

但是,有些用户无法收到确认电子邮件而无法登录.我想1)通过我的管理员权限确认它们或2)配置系统不发送电子邮件确认.

有任何想法吗?先感谢您.

小智 6

就像@ shin-haeng-kang所说,对于新用户,signup_enabled: false在网站设置中设置并从管理菜单创建用户,然后在创建用户后编辑密码将起作用.

如果用户已经存在,我发现以下问题请求显示了如何手动编辑postgres数据库.

从gitlab服务器:

sudo -u git -H psql -d gitlabhq_production
gitlabhq_production=> update users set confirmation_token=null, confirmed_at=now() where confirmed_at is null;
Run Code Online (Sandbox Code Playgroud)

  • 最好记住,如果你有默认安装,Gitlab将使用捆绑的Postgresql实例.您可以使用以下命令连接到这个:"sudo -u gitlab-psql/opt/gitlab/embedded/bin/psql -h/var/opt/gitlab/postgresql -d gitlabhq_production",如Gitlab文档中所述:http:// doc .gitlab.com /综合/设置/ database.html. (4认同)