aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/index.php b/install/index.php
index 878fe38..213eec7 100644
--- a/install/index.php
+++ b/install/index.php
@@ -131,7 +131,7 @@ if (isset($_GET['create_folders'])) {
if (isset($_GET['create_user'])) {
$username = 'admin';
try {
- $password = bin2hex(openssl_random_pseudo_bytes(8));
+ $password = user::generateRandomPassword();
$user = BusinessAdmin::createUser($_pdo, $username, $password);
if ($user !== false) {
echo "Created user '$username' ({$user->getId()}) with password '$password'.";