From d9f5705fd2d77fa84ece3921de3cbcf0b7808a11 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 14 Apr 2025 19:03:01 +0200 Subject: [PATCH] created upassword_hash variable needed for Messages --- auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.php b/auth.php index f423ed1..8685a86 100644 --- a/auth.php +++ b/auth.php @@ -34,13 +34,14 @@ if(!isset($_COOKIE[$cookie_name])) { if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } - $sql = "SELECT email, username FROM smz_auth_users WHERE id='$uid' AND active = 1"; + $sql = "SELECT email, username, password_hash FROM smz_auth_users WHERE id='$uid' AND active = 1"; $result = $conn->query($sql); $conn->close(); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $uemail = $row["email"]; $uname = $row["username"]; + $upassword_hash = $row["password_hash"]; } return true; } else {