@@ -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));
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user