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.
For me it could not find it by email. You are also able to search by eg:
user = User.find_by(id: 1)
this will get the root user then you can you canuser.confirm()
and after thatuser.save
this solved my problem. (this will also allow you to change the default email byuser.email = "[email protected]"