fixing issues in passkey auth
Deploy / deploy (push) Successful in 41s

This commit is contained in:
2026-05-07 23:01:02 +02:00
parent 38cb9bf81f
commit 8dd132369c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ try {
$formats[] = 'packed'; $formats[] = 'packed';
$formats[] = 'tpm'; $formats[] = 'tpm';
$rpId=$_SERVER['SERVER_NAME']; $rpId = $_GET['rpId'] ?? $_SERVER['SERVER_NAME'];
$typeUsb = true; $typeUsb = true;
$typeNfc = true; $typeNfc = true;
@@ -187,7 +187,7 @@ try {
} catch (Throwable $ex) { } catch (Throwable $ex) {
$return = new stdClass(); $return = new stdClass();
$return->success = false; $return->success = false;
$return->msg = 'Passkey registration failed.'; $return->msg = 'Passkey registration failed: ' . $ex->getMessage();
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));
+2 -2
View File
@@ -47,7 +47,7 @@ try {
$formats[] = 'packed'; $formats[] = 'packed';
$formats[] = 'tpm'; $formats[] = 'tpm';
$rpId=$_SERVER['SERVER_NAME']; $rpId = $_GET['rpId'] ?? $_SERVER['SERVER_NAME'];
$typeUsb = true; $typeUsb = true;
$typeNfc = true; $typeNfc = true;
@@ -185,7 +185,7 @@ try {
} catch (Throwable $ex) { } catch (Throwable $ex) {
$return = new stdClass(); $return = new stdClass();
$return->success = false; $return->success = false;
$return->msg = 'Passkey authentication failed.'; $return->msg = 'Passkey authentication failed: ' . $ex->getMessage();
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));