mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Don't require database password confirmation
This commit is contained in:
@@ -129,10 +129,6 @@ 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' => [
|
||||
@@ -253,7 +249,7 @@ 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.');
|
||||
throw new Exception('The password did not match its confirmation.');
|
||||
}
|
||||
|
||||
$this->info('Creating admin user '.$admin['username']);
|
||||
|
Reference in New Issue
Block a user