Update login.php

This commit is contained in:
jakani24
2024-04-26 14:47:16 +02:00
parent af4644b51e
commit ba08995d18

View File

@@ -326,8 +326,9 @@ try {
//put credential id into session where userid = $userId //put credential id into session where userid = $userId
$stmt = $conn->prepare("SELECT credential_id FROM users WHERE user_hex_id = ?"); $stmt = $conn->prepare("SELECT credential_id FROM users WHERE user_hex_id = ?");
$stmt->execute([$userId]); $stmt->bind_param("s", $userId);
$registration = $stmt->fetch(PDO::FETCH_ASSOC); $stmt->execute();
$registration = $stmt->get_result();
if (!$registration) { if (!$registration) {