aboutsummaryrefslogtreecommitdiff
path: root/install/index.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 09:15:36 +0200
committerCamil Staps2016-08-01 09:15:36 +0200
commit923aac957cc28723c622570d46d2a915c75df06f (patch)
treee4c6a3683f0f0781ed9545feb922e41a2e8d1e8b /install/index.php
parentInternationalisation: email subjects (diff)
Removed duplicate code
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 {