gitlab忘记密码后破解!

gitlab-rails console production
irb(main)::> user = User.where(id:).first
irb(main)::> user.password='!$zaq12wsx'
irb(main)::> user.save!
=> true
irb(main)::> exit

如下图所示:

gitlab忘记管理员密码-LMLPHP

05-19 17:25