mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Convert 'abcpassword' to 'abcpass' during setup
This allows autoconfig files to use 'dbpassword' instead of 'dbpass', which is more consistent with config.php
This commit is contained in:
parent
73c2157171
commit
f43b047636
1 changed files with 8 additions and 0 deletions
|
|
@ -55,6 +55,14 @@ class Controller {
|
|||
$post = $this->loadAutoConfig($post);
|
||||
$opts = $this->getSystemInfo();
|
||||
|
||||
// convert 'abcpassword' to 'abcpass'
|
||||
if (isset($post['adminpassword'])) {
|
||||
$post['adminpass'] = $post['adminpassword'];
|
||||
}
|
||||
if (isset($post['dbpassword'])) {
|
||||
$post['dbpass'] = $post['dbpassword'];
|
||||
}
|
||||
|
||||
if(isset($post['install']) AND $post['install']=='true') {
|
||||
// We have to launch the installation process :
|
||||
$e = \OC\Setup::install($post);
|
||||
|
|
|
|||
Loading…
Reference in a new issue