mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Fixed issue with initial user not having a password
This commit is contained in:
parent
080acf0a62
commit
4bb7f0613f
@ -21,10 +21,10 @@ class CreateUsersTable extends Migration
|
|||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
||||||
\BookStack\User::create([
|
\BookStack\User::forceCreate([
|
||||||
'name' => 'Admin',
|
'name' => 'Admin',
|
||||||
'email' => 'admin@admin.com',
|
'email' => 'admin@admin.com',
|
||||||
'password' => \Illuminate\Support\Facades\Hash::make('password')
|
'password' => bcrypt('password')
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user