diff options
author | Camil Staps | 2016-07-26 14:27:14 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-26 14:27:14 +0200 |
commit | d8055192991ac8504e48c137038879790c762d2d (patch) | |
tree | 0738603efca98c26d6d04cbd091898d4b6e9a34d /install | |
parent | Option to add first user during installation (diff) |
Adding and deleting users
Diffstat (limited to 'install')
-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 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'."; |