Skip to content

Instantly share code, notes, and snippets.

@exabrial
Forked from macdja38/Confirm-gitlab-email.md
Created August 6, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exabrial/f045e6574b9247c80fa5ccdad93040cd to your computer and use it in GitHub Desktop.
Save exabrial/f045e6574b9247c80fa5ccdad93040cd to your computer and use it in GitHub Desktop.
Confirm gitlab email by CLI

On your gitlab server run gitlab-rails console production

Find your user via user = User.find_by(email: "youroldemail@example.com")

Optionally change the user's email with user.email = "yournewemail@example.com" Then run user.save!

Get the user's token with user.confirmation_token

https://PutYourGitlabHere/users/confirmation?confirmation_token=PutYourTokenHere

I used this to change my email on a gitlab instance without an email server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment