mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 20:04:53 +00:00
Merge branch 'master' of github.com:itflow-org/itflow
This commit is contained in:
2
ajax.php
2
ajax.php
@@ -313,7 +313,7 @@ if (isset($_GET['scheduled_ticket_get_json_details'])) {
|
|||||||
* When provided with a TOTP secret, returns a 6-digit code
|
* When provided with a TOTP secret, returns a 6-digit code
|
||||||
*/
|
*/
|
||||||
if (isset($_GET['get_totp_token'])) {
|
if (isset($_GET['get_totp_token'])) {
|
||||||
$otp = TokenAuth6238::getTokenCode($_GET['totp_secret']);
|
$otp = TokenAuth6238::getTokenCode(strtoupper($_GET['totp_secret']));
|
||||||
|
|
||||||
echo json_encode($otp);
|
echo json_encode($otp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user