From 923aac957cc28723c622570d46d2a915c75df06f Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 09:15:36 +0200 Subject: Removed duplicate code --- install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/index.php') 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 { -- cgit v1.2.3