I'm trying to login to the web panel of my forgotten gitlab install but somehow the password is not working. I have tried to reset it in the console by the following
sudo -u git -H bundle exec rails console production
user = User.where(email: 'myemail@mail.com').first
user.password = 'password'
user.save
and i can confirm that a new encrypted password was set in the user table of the database, but still i cannot log in.
Using gitlab 6 on ubuntu.
What else could i do to reset the password or find out why i cant login.
user.save!
(with a bang) and see if it raises an exception.user.save
just returnsfalse
if the saving fails.