diff options
author | Camil Staps | 2016-08-01 11:54:56 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 11:54:56 +0200 |
commit | 99a0a7c1829a2ba4f8349f66e7047963eba4e4b1 (patch) | |
tree | 33c5608926e444d56ffc4abf53e9f872cd11c4b5 | |
parent | Several fixes (diff) |
Fix lowercase class names
-rw-r--r-- | include/users-new.php | 2 | ||||
-rw-r--r-- | 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.<br/>You can set this in classes/constants.php."; |