是否有rake命令重置Redmine管理员密码?

vfc*_*sts 1 redmine reset forgot-password

我丢失了redmine安装的管理员密码,在尝试清除salt的方法并设置密码的默认哈希后,password我仍然无法登录.

是否有rake命令来设置默认密码或设置特定密码?

Redmine版本是2.4.2

got*_*tva 7

我相信你可以从rails console重置你的(任何)密码.转到服务器上的Redmine文件夹

# start console
RAILS_ENV=production bundle exec rails c

# find your user
user = User.where(email: 'your_email@gmail.com').first

# set new password
user.password = '123123'
user.password_confirmation = '123123'

# save changes
user.save!
Run Code Online (Sandbox Code Playgroud)

请注意,如果save!返回异常,则无法应用更改.发布问题的异常消息.