mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
@@ -128,6 +128,10 @@ class InstallCommand extends Command
|
||||
{
|
||||
$dbConfig = $this->dataSource->getDatabaseConfiguration();
|
||||
|
||||
if ($dbConfig['password'] !== $dbConfig['password_confirmation']) {
|
||||
throw new Exception('The password did not match it\'s confirmation.');
|
||||
}
|
||||
|
||||
$config = [
|
||||
'debug' => true,
|
||||
'database' => [
|
||||
@@ -247,6 +251,10 @@ class InstallCommand extends Command
|
||||
{
|
||||
$admin = $this->dataSource->getAdminUser();
|
||||
|
||||
if ($admin['password'] !== $admin['password_confirmation']) {
|
||||
throw new Exception('The password did not match it\'s confirmation.');
|
||||
}
|
||||
|
||||
$this->info('Creating admin user '.$admin['username']);
|
||||
|
||||
User::unguard();
|
||||
|
Reference in New Issue
Block a user