Merge pull request #14743 from owncloud/autoconfig-password

Convert 'abcpassword' to 'abcpass' during setup
This commit is contained in:
Morris Jobke 2015-03-09 07:54:22 +01:00
commit 674654c210
1 changed files with 8 additions and 0 deletions

View File

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