user=User.where(name: "root").first user.password=‘12345678‘ user.password_confirmation = ‘12345678‘ user.save! quit
user=User.where(name: "root").first
user.password=‘12345678‘
user.password_confirmation = ‘12345678‘
user.save!
quit
gitlab修改用户密码
原文:https://blog.51cto.com/weimouren/2369503