aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 11:54:56 +0200
committerCamil Staps2016-08-01 11:54:56 +0200
commit99a0a7c1829a2ba4f8349f66e7047963eba4e4b1 (patch)
tree33c5608926e444d56ffc4abf53e9f872cd11c4b5
parentSeveral fixes (diff)
Fix lowercase class names
-rw-r--r--include/users-new.php2
-rw-r--r--install/index.php2
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.";