Skip to content

Commit

Permalink
Fixes #818, and randomizes password for dummy user
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed May 27, 2015
1 parent c77e7bf commit 73a08c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/commands/AppCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AppCommand extends Command
'email' => null,
'password' => null
);

protected $dummyData = true;

/**
Expand Down Expand Up @@ -103,7 +103,7 @@ public function fire()
$this->call('db:seed', array('--force'=>true));
}
else
{
{
// Seeding Settings table is mandatory
$this->call('db:seed', array('--class' => 'SettingsSeeder', '--force'=>true));
// Seeding Statuslabels is strongly recommended
Expand Down Expand Up @@ -207,7 +207,7 @@ protected function askUserPassword()
$this->userData['password'] = $password;
} while( ! $password);
}

/**
* Asks the user to create dummy data
*
Expand Down Expand Up @@ -350,7 +350,8 @@ protected function sentryCreateDummyUser()
'first_name' => 'John',
'last_name' => 'Doe',
'email' => '[email protected]',
'password' => 'johndoe',
'password' => substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', mt_rand(1,10))),1,10),
'notes' => 'Generated on install',
'activated' => 1,
'manager_id' => 1,
);
Expand Down

0 comments on commit 73a08c0

Please sign in to comment.