From 99a0a7c1829a2ba4f8349f66e7047963eba4e4b1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 11:54:56 +0200 Subject: Fix lowercase class names --- include/users-new.php | 2 +- install/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/users-new.php b/include/users-new.php index a3bc3e2..4ad8e6f 100644 --- a/include/users-new.php +++ b/include/users-new.php @@ -25,7 +25,7 @@ require_once(__DIR__ . '/../login-ajax.php'); $response = new Response(); try { - $pass = user::generateRandomPassword(); + $pass = User::generateRandomPassword(); $user = User::create($_pdo, [$_REQUEST['username'], $pass]); if ($user === false) { diff --git a/install/index.php b/install/index.php index 6844241..1bb4bdd 100644 --- a/install/index.php +++ b/install/index.php @@ -177,7 +177,7 @@ if (isset($_GET['password_cost'])) { $start = $end = 0; for ($cost = 10; $end - $start < $target; $cost++) { $start = microtime(true); - user::hash('test', $cost); + User::hash('test', $cost); $end = microtime(true); } echo "Password cost suggestion: $cost.
You can set this in classes/constants.php."; -- cgit v1.2.3