Skip to content

Commit 73a08c0

Browse files
committed
Fixes snipe#818, and randomizes password for dummy user
1 parent c77e7bf commit 73a08c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/commands/AppCommand.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AppCommand extends Command
3131
'email' => null,
3232
'password' => null
3333
);
34-
34+
3535
protected $dummyData = true;
3636

3737
/**
@@ -103,7 +103,7 @@ public function fire()
103103
$this->call('db:seed', array('--force'=>true));
104104
}
105105
else
106-
{
106+
{
107107
// Seeding Settings table is mandatory
108108
$this->call('db:seed', array('--class' => 'SettingsSeeder', '--force'=>true));
109109
// Seeding Statuslabels is strongly recommended
@@ -207,7 +207,7 @@ protected function askUserPassword()
207207
$this->userData['password'] = $password;
208208
} while( ! $password);
209209
}
210-
210+
211211
/**
212212
* Asks the user to create dummy data
213213
*
@@ -350,7 +350,8 @@ protected function sentryCreateDummyUser()
350350
'first_name' => 'John',
351351
'last_name' => 'Doe',
352352
'email' => '[email protected]',
353-
'password' => 'johndoe',
353+
'password' => substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', mt_rand(1,10))),1,10),
354+
'notes' => 'Generated on install',
354355
'activated' => 1,
355356
'manager_id' => 1,
356357
);

0 commit comments

Comments
 (0)