created upassword_hash variable needed for Messages
This commit is contained in:
parent
54b883b846
commit
d9f5705fd2
1 changed files with 2 additions and 1 deletions
3
auth.php
3
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue