Merge pull request #650 from meltyness/totpfix

fixes #477
This commit is contained in:
Johnny 2023-03-28 21:47:54 -04:00 committed by GitHub
commit 9f30de408c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ if (isset($_GET['scheduled_ticket_get_json_details'])) {
* When provided with a TOTP secret, returns a 6-digit code
*/
if (isset($_GET['get_totp_token'])) {
$otp = TokenAuth6238::getTokenCode($_GET['totp_secret']);
$otp = TokenAuth6238::getTokenCode(strtoupper($_GET['totp_secret']));
echo json_encode($otp);
}