mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 07:21:12 +00:00
Force password reset for default admin user (#22381).
Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@15321 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
97a647c1e5
commit
1013e77e16
@ -0,0 +1,9 @@
|
|||||||
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user