Gitlab 重置密碼

Gitlab 重置密碼

1、執行

gitlab-rails console production

2、輸入:

密碼最短爲 8 個字符,密碼和確認密碼要一樣

user = User.where(id: 1).first
user.password = '你的密碼'
user.password_confirmation = '你的密碼-確認'
user.save!

3、保存成功後退出

quit

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章