mirror of
https://github.com/itflow-org/itflow
synced 2026-05-05 18:57:47 +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'];
|
||||
$client_id = intval($sql['credential_client_id']);
|
||||
|
||||
enforceClientAccess();
|
||||
|
||||
$otp = TokenAuth6238::getTokenCode(strtoupper($totp_secret));
|
||||
echo json_encode($otp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user