[Web] Fix totp qr code, fixes #2490
This commit is contained in:
parent
a654f7766d
commit
82f7cab259
@ -7,7 +7,7 @@ if (!isset($_SESSION['mailcow_cc_role'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET['token']) && ctype_alnum($_GET['token'])) {
|
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']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user