gitlab修改用户密码

gitlab-rails console -e production

user = User.where(username:”zhoulihua”).first
user.password = “12345678”
user.password_confirmation=’12345678′
user.save!

Share