From 34e873c2c996ee7f8c2ea070ebbd685e904304ed Mon Sep 17 00:00:00 2001 From: NaysKutzu Date: Tue, 22 Aug 2023 19:52:17 +0000 Subject: [PATCH] PUSH -> Done #43 --- view/admin/users/view_users.php | 2 +- view/auth/register.php | 2 +- view/auth/reset-password.php | 2 +- view/components/sidebar.php | 17 ++--------------- view/dashboard.php | 3 +++ view/earn/afk.php | 3 +++ view/earn/redeem.php | 3 +++ view/server/create.php | 3 +++ view/server/queueDelete.php | 4 +++- view/store.php | 19 +++++++++---------- view/user/resetpwd.php | 2 +- 11 files changed, 30 insertions(+), 30 deletions(-) diff --git a/view/admin/users/view_users.php b/view/admin/users/view_users.php index 0bfd374..39aee06 100644 --- a/view/admin/users/view_users.php +++ b/view/admin/users/view_users.php @@ -71,7 +71,7 @@
Users - Create New User +
diff --git a/view/auth/register.php b/view/auth/register.php index 97bec61..13bcd9b 100644 --- a/view/auth/register.php +++ b/view/auth/register.php @@ -41,7 +41,7 @@ header('location: /auth/register?e=Please only use characters from A-Z in your last name!'); die(); } - $password = password_hash($upassword, PASSWORD_DEFAULT); + $password = password_hash($upassword, PASSWORD_BCRYPT); $skey = generate_key($email, $password); if (!$username == "" || !$email == "" || !$first_name == "" || !$last_name == "" || !$upassword == "") { $check_query = "SELECT * FROM mythicaldash_users WHERE username = '$username' OR email = '$email'"; diff --git a/view/auth/reset-password.php b/view/auth/reset-password.php index dd45c1c..93bc635 100644 --- a/view/auth/reset-password.php +++ b/view/auth/reset-password.php @@ -13,7 +13,7 @@ if ($csrf->validate('reset-password-form')) { $ucode = $conn->query("SELECT * FROM mythicaldash_resetpasswords WHERE `user-resetkeycode` = '" . $code . "'")->fetch_array(); $upassword = mysqli_real_escape_string($conn, $_GET['password']); - $password = password_hash($upassword, PASSWORD_DEFAULT); + $password = password_hash($upassword, PASSWORD_BCRYPT); $conn->query("UPDATE `mythicaldash_users` SET `password` = '" . $password . "' WHERE `mythicaldash_users`.`api_key` = '" . $ucode['user-apikey'] . "';"); $conn->query("DELETE FROM mythicaldash_resetpasswords WHERE `mythicaldash_resetpasswords`.`id` = " . $ucode['id'] . ""); $conn->close(); diff --git a/view/components/sidebar.php b/view/components/sidebar.php index c5c2305..d918425 100644 --- a/view/components/sidebar.php +++ b/view/components/sidebar.php @@ -107,24 +107,11 @@ function is_active_page($page_urls)
Application API
-