Update login.php

This commit is contained in:
jakani24
2024-04-26 14:52:04 +02:00
parent 1a1027ef54
commit e911d795aa

View File

@@ -353,7 +353,7 @@ try {
// Process get // Process get
// Retrieve registration data from the database based on credential ID // Retrieve registration data from the database based on credential ID
$id = base64_decode($post->id); $id = base64_decode($post->id);
$stmt = $conn->prepare("SELECT * FROM user WHERE credential_id = ?"); $stmt = $conn->prepare("SELECT * FROM users WHERE credential_id = ?");
$stmt->execute([$id]); $stmt->execute([$id]);
$registration = $stmt->fetch(PDO::FETCH_ASSOC); $registration = $stmt->fetch(PDO::FETCH_ASSOC);