aboutsummaryrefslogtreecommitdiff
path: root/install/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/index.php')
-rw-r--r--install/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/index.php b/install/index.php
index 19cd5a4..d331f91 100644
--- a/install/index.php
+++ b/install/index.php
@@ -161,7 +161,7 @@ if (isset($_GET['create_user'])) {
$username = 'admin';
try {
$password = user::generateRandomPassword();
- $user = BusinessAdmin::createUser($_pdo, $username, $password);
+ $user = User::create($_pdo, [$username, $password]);
if ($user !== false) {
echo "Created user '$username' ({$user->id}) with password '$password'.";
} else {