diff options
author | Camil Staps | 2016-08-01 09:15:36 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 09:15:36 +0200 |
commit | 923aac957cc28723c622570d46d2a915c75df06f (patch) | |
tree | e4c6a3683f0f0781ed9545feb922e41a2e8d1e8b /install/index.php | |
parent | Internationalisation: email subjects (diff) |
Removed duplicate code
Diffstat (limited to 'install/index.php')
-rw-r--r-- | install/index.php | 2 |
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 { |