Commit 1b73e0e0 authored by jplang's avatar jplang

Force password reset for default admin user (#22381).

Patch by Gregor Schmidt.

git-svn-id: https://svn.redmine.org/redmine/trunk@15321 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b13b5a91
class ForcePasswordResetDuringSetup < ActiveRecord::Migration
def up
User.where(login: "admin", last_login_on: nil).update_all(must_change_passwd: true)
end
def down
User.where(login: "admin", last_login_on: nil, must_change_passwd: true).update_all(must_change_passwd: false)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment