How the disable the user confirmation e-mail
Asked Answered
B

1

9

Currently, I am using Gitlab. However, some users cannot receive the confirmation email and cannot log in.

I would like to confirm them through my admin privilege, or configure the system not to send the email confirmation.

Any ideas?

Bloodyminded answered 14/5, 2015 at 8:30 Comment(1)
I'm not sure as I cannot try it, yet: Did you try setting signup_enabled: false, temporarily? So you should be able to create gitlab users via admin access.Bulger
Y
5

Like @shin-haeng-kang said, for a new user, setting signup_enabled: false in the site settings and creating users from the admin menu and then editing the password after creating the user will work.

If the users already exists, I found the following issue request that shows how to edit the postgres database manually.

From the gitlab server:

sudo -u git -H psql -d gitlabhq_production
gitlabhq_production=> update users set confirmation_token=null, confirmed_at=now() where confirmed_at is null;
Yuji answered 2/8, 2015 at 23:43 Comment(2)
Better keep in mind that if you have a default installation, Gitlab will use an bundled Postgresql instance. You may connect to this one with: "sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production" as explained at Gitlab docs: doc.gitlab.com/omnibus/settings/database.html.Clicker
If I create a user from the admin menu, it still sends them an email. I have sign-up disabled. So this answer isn't current.Holm

© 2022 - 2025 — McMap. All rights reserved.