A lot of code cleanup and code sanitation done.

This commit is contained in:
2026-06-20 00:31:32 +02:00
parent be392b8149
commit d781078c0d
100 changed files with 733 additions and 2097 deletions

View File

@@ -4,7 +4,7 @@ if ($_POST['password-1'] != $_POST['password-2']) {
exit;
}
include_once $_SERVER['DOCUMENT_ROOT'] . '/login/php/authFunctions.php';
require_once "{$_SERVER['DOCUMENT_ROOT']}/login/php/authFunctions.php";
$user_password = password_hash($_POST['password-1'], PASSWORD_BCRYPT, ["cost" => 12]);
if (isset($_POST['user_uuid'])) {
@@ -38,6 +38,7 @@ if (isset($_POST['user_uuid'])) {
function checkUserExists($whereValue, $conn, $sql)
{
$stmt = $conn->prepare($sql);
$count = 0;
$stmt->bind_param("s", $whereValue);
$stmt->execute();
$stmt->bind_result($count);
@@ -62,8 +63,7 @@ $stmt->bind_param("ss",
if ($stmt->execute()) {
header('location: /login/resetPassword.php?result=success');
exit;
} else {
header('location: /login/resetPassword.php?result=failed');
exit;
}
}
exit;