Skip to content

Commit

Permalink
updated seeds to not create account password
Browse files Browse the repository at this point in the history
  • Loading branch information
MelonSmasher committed Jun 3, 2020
1 parent 8e40b1b commit 9b3a9db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions database/factories/ModelFactory.php
Expand Up @@ -82,16 +82,13 @@
$dutyIds = Duty::pluck('id')->all();
$loadStatusIds = LoadStatus::pluck('id')->all();
$loadStatusIds[] = null;
$pass = $faker->optional()->password(6);
$birth_date = $faker->optional()->date('Y-m-d');
$expires_at = null;
if ($faker->boolean) {
$expires_at = $faker->dateTimeBetween('+1 days', '+2 years');
}
$disabled = $faker->boolean;
$should_propagate_password = false;
if (!empty($pass)) $pass = encrypt($pass);
if (!empty($pass)) $should_propagate_password = $faker->boolean;
if (!empty($birth_date)) $birth_date = encrypt($birth_date);

return [
Expand All @@ -103,7 +100,6 @@
'name_postfix' => $faker->optional()->title,
'name_phonetic' => $faker->optional()->firstName,
'username' => $faker->unique()->userName,
'password' => $pass,
'should_propagate_password' => $should_propagate_password,
'birth_date' => $birth_date,
'expires_at' => $expires_at,
Expand Down

0 comments on commit 9b3a9db

Please sign in to comment.