Dan Brown

Fixed issue with initial user not having a password

...@@ -21,10 +21,10 @@ class CreateUsersTable extends Migration ...@@ -21,10 +21,10 @@ class CreateUsersTable extends Migration
21 $table->timestamps(); 21 $table->timestamps();
22 }); 22 });
23 23
24 - \BookStack\User::create([ 24 + \BookStack\User::forceCreate([
25 'name' => 'Admin', 25 'name' => 'Admin',
26 'email' => 'admin@admin.com', 26 'email' => 'admin@admin.com',
27 - 'password' => \Illuminate\Support\Facades\Hash::make('password') 27 + 'password' => bcrypt('password')
28 ]); 28 ]);
29 } 29 }
30 30
......