Update login.php

This commit is contained in:
jakani24
2024-04-04 21:30:12 +02:00
parent 8b2274f58c
commit b14f8a08fc

View File

@@ -149,12 +149,6 @@ try {
// save challange to session. you have to deliver it to processGet later. // save challange to session. you have to deliver it to processGet later.
$_SESSION['challenge'] = $WebAuthn->getChallenge(); $_SESSION['challenge'] = $WebAuthn->getChallenge();
// ------------------------------------
// process create
// ------------------------------------
}else if ($fn === 'processGet') { }else if ($fn === 'processGet') {
$clientDataJSON = base64_decode($post->clientDataJSON); $clientDataJSON = base64_decode($post->clientDataJSON);
$authenticatorData = base64_decode($post->authenticatorData); $authenticatorData = base64_decode($post->authenticatorData);
@@ -197,6 +191,7 @@ try {
$return = new stdClass(); $return = new stdClass();
$return->success = true; $return->success = true;
$return->j=true;
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));