redmine3.3.9-重置管理員admin密碼

環境介紹:

CentOS Linux release 7.6.1810

redmine-3.3.9

 

操作步驟:

Go to the redmine folder and change the password (redmine的安裝目錄,例如/var/www/redmine)

運行以下命令時,非必須使用管理員賬戶登錄
# start console
RAILS_ENV=production bundle exec rails c
 
# find your user
user = User.where(id: 1).first
 
# set new password (設置新密碼爲password)
user.password = 'password'
user.password_confirmation = 'password'
 
# save changes
user.save!

密碼重置完成,可以直接使用新密碼登錄redmine了

 

原文:https://zlargon.github.io/blog/Redmine/how-to-reset-password-in-redmine/

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