aboutsummaryrefslogtreecommitdiffhomepage
path: root/database/seeds/DatabaseSeeder.php
diff options
context:
space:
mode:
Diffstat (limited to 'database/seeds/DatabaseSeeder.php')
-rw-r--r--database/seeds/DatabaseSeeder.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php
index b31b7e0..1f7953b 100644
--- a/database/seeds/DatabaseSeeder.php
+++ b/database/seeds/DatabaseSeeder.php
@@ -18,13 +18,15 @@ class DatabaseSeeder extends Seeder
'name' => 'genesis',
'email' => ' ',
'password' => ' ',
- 'hash' => bcrypt('genesis')
+ 'prevHash' => '0',
+ 'hash' => Hash::make('genesis')
]);
DB::table('users')->insert([
'name' => 'Marvin Borner',
'email' => 'marvin@borners.de',
'password' => Hash::make('password'),
+ 'prevHash' => Hash::make('genesis'),
'hash' => Hash::make(Hash::make('genesis') . 'Marvin Borner' . 'marvin@borners.de' . Hash::make('password')) // hashing: prev hash, all fields in current 'block'
]);
}