Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Commit 2afa66b

Browse files
generatefirstuser path
1 parent b811db4 commit 2afa66b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protected/commands/CiiSetupCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function generateHash($overrideConfig = false)
7575

7676
// If the params file already exists, import it
7777
if (file_exists($paramsFile))
78-
$params = require $paramsFile;
78+
$params = CMap::mergeArray($paramsTemplate, require $paramsFile);
7979

8080
if (empty($params))
8181
$params = $paramsTemplate;
@@ -164,4 +164,4 @@ public function getEncryptedPassword($email, $password, $hash)
164164
$hash = $this->encryptHash($email, $password, $hash);
165165
return password_hash($hash, PASSWORD_BCRYPT, array('cost' => 13));
166166
}
167-
}
167+
}

0 commit comments

Comments
 (0)