Enforce Client Access Restriction on ajax call get_totp_token_via_id

This commit is contained in:
johnnyq
2026-05-04 15:48:40 -04:00
parent 8094e6e761
commit e0f2fc1e1b

View File

@@ -403,6 +403,8 @@ if (isset($_GET['get_totp_token_via_id'])) {
$totp_secret = $sql['credential_otp_secret'];
$client_id = intval($sql['credential_client_id']);
enforceClientAccess();
$otp = TokenAuth6238::getTokenCode(strtoupper($totp_secret));
echo json_encode($otp);