Github forced to retrieve administrator account password

step:
1. Log in to the server where the Github, switch users to git: su git
2. Go to the Rails Github console: gitlab-rails console production
3. See super administrator: user = User.where (id: 1) .first returns the result as follows:
4. Modify the root password: user.password = "password to be set"
5. Save Settings: user.save (do not forget to follow the exclamation point)!
 

Guess you like

Origin www.cnblogs.com/lty-fly/p/11687123.html
Recommended