On your gitlab server run gitlab-rails console production
Find your user via user = User.find_by(email: "[email protected]")
Optionally change the user's email with user.email = "[email protected]"
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.
UPD: To verify a secondary email use:
Works on GitLab 13.3.4
Idea from https://docs.gitlab.com/ce/user/upgrade_email_bypass.html#what-do-i-do-if-i-am-an-administrator-and-i-am-locked-out