Patch #18804 » admin_user_not_created.patch
| db/migrate/001_setup.rb | ||
|---|---|---|
| 288 | 288 |
Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 |
| 289 | 289 | |
| 290 | 290 |
# create default administrator account |
| 291 |
user = User.create :login => "admin", |
|
| 292 |
:hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997", |
|
| 293 |
:admin => true, |
|
| 294 |
:firstname => "Redmine", |
|
| 295 |
:lastname => "Admin", |
|
| 296 |
:mail => "admin@example.net", |
|
| 297 |
:mail_notification => true, |
|
| 298 |
:status => 1 |
|
| 291 |
user = User.new :firstname => "Redmine", |
|
| 292 |
:lastname => "Admin", |
|
| 293 |
:mail => "admin@example.net", |
|
| 294 |
:mail_notification => 'all', |
|
| 295 |
:status => 1 |
|
| 296 |
user.login = 'admin' |
|
| 297 |
user.hashed_password = "d033e22ae348aeb5660fc2140aec35850c4da997" |
|
| 298 |
user.admin = true |
|
| 299 |
user.save |
|
| 300 | ||
| 301 | ||
| 299 | 302 |
end |
| 300 | 303 | |
| 301 | 304 |
def self.down |