Update login.php

This commit is contained in:
jakani24
2024-04-04 21:26:18 +02:00
parent 1f9beb9e7d
commit 8b2274f58c

View File

@@ -188,8 +188,6 @@ try {
// process the get request. throws WebAuthnException if it fails // process the get request. throws WebAuthnException if it fails
$WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $credentialPublicKey, $challenge, null, $userVerification === 'required'); $WebAuthn->processGet($clientDataJSON, $authenticatorData, $signature, $credentialPublicKey, $challenge, null, $userVerification === 'required');
$return = new stdClass();
$return->success = true;
//we have authenticated the user! //we have authenticated the user!
$_SESSION["username"]=$userName; $_SESSION["username"]=$userName;
$_SESSION["login"]=true; $_SESSION["login"]=true;
@@ -197,6 +195,9 @@ try {
$_SESSION["email"]="janis.st44@gmail.com"; $_SESSION["email"]="janis.st44@gmail.com";
$_SESSION["telegram_id"]="1234"; $_SESSION["telegram_id"]="1234";
$return = new stdClass();
$return->success = true;
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));