-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #818, and randomizes password for dummy user
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ class AppCommand extends Command | |
'email' => null, | ||
'password' => null | ||
); | ||
|
||
protected $dummyData = true; | ||
|
||
/** | ||
|
@@ -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 | ||
|
@@ -207,7 +207,7 @@ protected function askUserPassword() | |
$this->userData['password'] = $password; | ||
} while( ! $password); | ||
} | ||
|
||
/** | ||
* Asks the user to create dummy data | ||
* | ||
|
@@ -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, | ||
); | ||
|