Fix redirect URL in process_login.php and update QR scanner page structure

This commit is contained in:
vista-man
2025-04-10 17:20:16 +02:00
parent c7300a2b0a
commit 950ba3aafb
2 changed files with 20 additions and 24 deletions

View File

@@ -35,11 +35,11 @@ try {
// Start session and store user ID
session_start();
$_SESSION['user_id'] = $user_id;
header("Location: ../qr/qr.html"); // Redirect to QR scanner page
header("Location: ../qr/qr.html"); // Redirect to the QR scanner page
exit();
} else {
// Redirect back to login page with an error message
header("Location: ../employee-login.html?error=invalid_credentials");
header("Location: ../employee-login.php?error=invalid_credentials");
exit();
}
} finally {