From: Dan Brown Date: Mon, 1 Feb 2016 18:30:50 +0000 (+0000) Subject: Fixed issue with initial user not having a password X-Git-Tag: v.0.7.1^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/4bb7f0613fd3bf672ca8c3042ad08e9b7ace5458 Fixed issue with initial user not having a password --- 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' => 'admin@admin.com', - 'password' => \Illuminate\Support\Facades\Hash::make('password') + 'password' => bcrypt('password') ]); }