From 82f7cab2599c24eb742881ae19fb9e5e3bfe3ec6 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 1 Apr 2019 22:17:44 +0200 Subject: [PATCH] [Web] Fix totp qr code, fixes #2490 --- data/web/inc/ajax/qr_gen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/ajax/qr_gen.php b/data/web/inc/ajax/qr_gen.php index 1c543ebe..a39c3f64 100644 --- a/data/web/inc/ajax/qr_gen.php +++ b/data/web/inc/ajax/qr_gen.php @@ -7,7 +7,7 @@ if (!isset($_SESSION['mailcow_cc_role'])) { } if (isset($_GET['token']) && ctype_alnum($_GET['token'])) { - echo $tfa->getQRCodeImageAsDataUri($_SESSION['mailcow_cc_username'], $totp_secret); + echo $tfa->getQRCodeImageAsDataUri($_SESSION['mailcow_cc_username'], $_GET['token']); } ?>