mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 07:33:43 +08:00
Don't require database password confirmation
This commit is contained in:
parent
b30004a9d4
commit
d549e26a4b
@ -59,7 +59,6 @@ class InstallAction extends Action
|
||||
'database' => array_get($input, 'mysqlDatabase'),
|
||||
'username' => array_get($input, 'mysqlUsername'),
|
||||
'password' => array_get($input, 'mysqlPassword'),
|
||||
'password_confirmation' => array_get($input, 'mysqlPasswordConfirmation'),
|
||||
'prefix' => array_get($input, 'tablePrefix'),
|
||||
]);
|
||||
|
||||
|
@ -42,7 +42,6 @@ class DataFromUser implements ProvidesData
|
||||
'database' => $this->ask('Database name:'),
|
||||
'username' => $this->ask('Database user:'),
|
||||
'password' => $this->secret('Database password:'),
|
||||
'password_confirmation' => $this->secret('Database password (confirmation):'),
|
||||
'prefix' => $this->ask('Prefix:'),
|
||||
];
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ class DefaultData implements ProvidesData
|
||||
'database' => 'flarum',
|
||||
'username' => 'root',
|
||||
'password' => 'root',
|
||||
'password_confirmation' => 'root',
|
||||
'prefix' => '',
|
||||
];
|
||||
|
||||
|
@ -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']);
|
||||
|
@ -31,7 +31,6 @@
|
||||
<div class="FormField">
|
||||
<label>MySQL Password</label>
|
||||
<input type="password" name="mysqlPassword">
|
||||
<input type="password" name="mysqlPasswordConfirmation">
|
||||
</div>
|
||||
|
||||
<div class="FormField">
|
||||
@ -54,6 +53,10 @@
|
||||
<div class="FormField">
|
||||
<label>Admin Password</label>
|
||||
<input type="password" name="adminPassword">
|
||||
</div>
|
||||
|
||||
<div class="FormField">
|
||||
<label>Confirm Password</label>
|
||||
<input type="password" name="adminPasswordConfirmation">
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user