Update login.php

This commit is contained in:
jakani24
2024-04-26 14:49:31 +02:00
parent 937a606b3a
commit a6d2e8bebd

View File

@@ -336,7 +336,7 @@ try {
throw new Exception('Public Key for user ID not found!'); throw new Exception('Public Key for user ID not found!');
} }
$_SESSION["registrations"]->credentialId=$row["credential_id"]; $_SESSION["registrations"]["credentialId"]=$row["credential_id"];
if ($requireResidentKey) { if ($requireResidentKey) {
if (!isset($_SESSION['registrations']) || !is_array($_SESSION['registrations']) || count($_SESSION['registrations']) === 0) { if (!isset($_SESSION['registrations']) || !is_array($_SESSION['registrations']) || count($_SESSION['registrations']) === 0) {