Gitlab password reset in rails -


i'm trying login web panel of forgotten gitlab install somehow password not working. have tried reset in console following

sudo -u git -h bundle exec rails console production user = user.where(email: 'myemail@mail.com').first user.password = 'password' user.save 

and can confirm new encrypted password set in user table of database, still cannot log in.

using gitlab 6 on ubuntu.

what else reset password or find out why cant login.

you need save password confirmation too:

user = user.find_by(email: 'admin@local.host') user.password = 'secret_pass' user.password_confirmation = 'secret_pass' user.save! 

(exclamation point important)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -