Guest login sharing - OTP

Bugfix: Fix guests not being able to see the 2FA/TOTP token via the sharing link
https://forum.itflow.org/d/646-shared-login-with-otp
This commit is contained in:
Marcus Hill
2024-03-17 19:32:49 +00:00
parent 064629d499
commit f1528b9e95
2 changed files with 10 additions and 2 deletions

View File

@@ -10,6 +10,8 @@ require_once "config.php";
require_once "functions.php";
require_once "rfc6238.php";
/*
* Creates & Returns a Stripe Payment Intent for a particular invoice ID
@@ -119,3 +121,9 @@ if (isset($_GET['stripe_create_pi'])) {
}
}
if (isset($_GET['get_totp_token'])) {
$otp = TokenAuth6238::getTokenCode(strtoupper($_GET['totp_secret']));
echo json_encode($otp);
}