Skip to content

NOW MANAGED ON CODEBERG

Fixed issue with initial user not having a password

Dan Brown4bb7f0613fd3
diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php
index 3a374f251..aa6cfee42 100644
--- a/database/migrations/2014_10_12_000000_create_users_table.php
+++ b/database/migrations/2014_10_12_000000_create_users_table.php
@@ -21,10 +21,10 @@ class CreateUsersTable extends Migration
$table->timestamps();
});
- \BookStack\User::create([
+ \BookStack\User::forceCreate([
'name' => 'Admin',
'email' => '[email protected]',
- 'password' => \Illuminate\Support\Facades\Hash::make('password')
+ 'password' => bcrypt('password')
]);
}