Update login.php

This commit is contained in:
jakani24
2024-04-26 14:45:17 +02:00
parent 86b7daa57a
commit af4644b51e

View File

@@ -325,7 +325,7 @@ try {
//get registrations form user table //get registrations form user table
//put credential id into session where userid = $userId //put credential id into session where userid = $userId
$stmt = $conn->prepare("SELECT credential_id FROM user WHERE user_hex_id = ?"); $stmt = $conn->prepare("SELECT credential_id FROM users WHERE user_hex_id = ?");
$stmt->execute([$userId]); $stmt->execute([$userId]);
$registration = $stmt->fetch(PDO::FETCH_ASSOC); $registration = $stmt->fetch(PDO::FETCH_ASSOC);