mirror of
https://github.com/itflow-org/itflow
synced 2026-09-22 06:31:15 +00:00
Enforce Client Access Restriction on ajax call get_totp_token_via_id
This commit is contained in:
@@ -403,6 +403,8 @@ if (isset($_GET['get_totp_token_via_id'])) {
|
|||||||
$totp_secret = $sql['credential_otp_secret'];
|
$totp_secret = $sql['credential_otp_secret'];
|
||||||
$client_id = intval($sql['credential_client_id']);
|
$client_id = intval($sql['credential_client_id']);
|
||||||
|
|
||||||
|
enforceClientAccess();
|
||||||
|
|
||||||
$otp = TokenAuth6238::getTokenCode(strtoupper($totp_secret));
|
$otp = TokenAuth6238::getTokenCode(strtoupper($totp_secret));
|
||||||
echo json_encode($otp);
|
echo json_encode($otp);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user