Gitlab 自架忘記密碼處理
版本紀錄

通過 Rails 控制台重置密碼
- 登入 Gitlab-rails
sudo gitlab-rails console
- 查找用戶
user = User.find_by(username: 'your_username')
- 重置密碼 將 「newpassword」 改為要更改的密碼
user.password = 'newpassword'
user.password_confirmation = 'newpassword'
user.save!
- 退出Rails控制台
exit
操作完以上步驟會回傳ture 就完成了修改密碼設置。