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/

你可能感兴趣的:(centos,redmine)