Fixed issue with initial user not having a password

This commit is contained in:
Dan Brown 2016-02-01 18:30:50 +00:00
parent 080acf0a62
commit 4bb7f0613f

View File

@ -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')
]);
}