@@ -62,7 +62,7 @@ try {
|
||||
$formats[] = 'packed';
|
||||
$formats[] = 'tpm';
|
||||
|
||||
$rpId=$_SERVER['SERVER_NAME'];
|
||||
$rpId = $_GET['rpId'] ?? $_SERVER['SERVER_NAME'];
|
||||
|
||||
$typeUsb = true;
|
||||
$typeNfc = true;
|
||||
@@ -187,7 +187,7 @@ try {
|
||||
} catch (Throwable $ex) {
|
||||
$return = new stdClass();
|
||||
$return->success = false;
|
||||
$return->msg = 'Passkey registration failed.';
|
||||
$return->msg = 'Passkey registration failed: ' . $ex->getMessage();
|
||||
|
||||
header('Content-Type: application/json');
|
||||
print(json_encode($return));
|
||||
|
||||
@@ -47,7 +47,7 @@ try {
|
||||
$formats[] = 'packed';
|
||||
$formats[] = 'tpm';
|
||||
|
||||
$rpId=$_SERVER['SERVER_NAME'];
|
||||
$rpId = $_GET['rpId'] ?? $_SERVER['SERVER_NAME'];
|
||||
|
||||
$typeUsb = true;
|
||||
$typeNfc = true;
|
||||
@@ -185,7 +185,7 @@ try {
|
||||
} catch (Throwable $ex) {
|
||||
$return = new stdClass();
|
||||
$return->success = false;
|
||||
$return->msg = 'Passkey authentication failed.';
|
||||
$return->msg = 'Passkey authentication failed: ' . $ex->getMessage();
|
||||
|
||||
header('Content-Type: application/json');
|
||||
print(json_encode($return));
|
||||
|
||||
Reference in New Issue
Block a user