1
0
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:
Toby Zerner
2015-09-04 21:45:52 +09:30
parent 85fc0a3129
commit 1f8f79d272
5 changed files with 24 additions and 28 deletions

View File

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