1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-21 16:01:14 +00:00

Default admin user may not be crated in Redmine 3.0 (#18804).

Patch by Ondřej Ezr.

git-svn-id: http://svn.redmine.org/redmine/trunk@13968 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-02-07 09:04:37 +00:00
parent 41e1758b00
commit 84d8453cf0

View File

@ -288,14 +288,17 @@ class Setup < ActiveRecord::Migration
Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
# create default administrator account # create default administrator account
user = User.create :login => "admin", user = User.new :firstname => "Redmine",
:hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997", :lastname => "Admin",
:admin => true, :mail => "admin@example.net",
:firstname => "Redmine", :mail_notification => 'all',
:lastname => "Admin", :status => 1
:mail => "admin@example.net", user.login = 'admin'
:mail_notification => true, user.hashed_password = "d033e22ae348aeb5660fc2140aec35850c4da997"
:status => 1 user.admin = true
user.save
end end
def self.down def self.down