diff options
-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."; |