-
Run
gitlab-rails console
; -
Find the user:
user = User.User.find_by_username('username')
-
Look at the list of emails and find the one you want to confirm:
user.emails
-
Confirm it:
user.emails[1].confirm
Forked from zmwangx/self-hosted-gitlab-manually-confirm-user-email.md
Created
October 4, 2024 14:07
-
-
Save Wayeet/4e3519e0741d5902999a9aa277a3db8a to your computer and use it in GitHub Desktop.
Manually confirm user email with `gitlab-rails console`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment