2019-03-19 15:45:08 +08:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
|
|
|
|
header('Content-Type: text/plain');
|
|
|
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($_GET['token']) && ctype_alnum($_GET['token'])) {
|
2019-04-02 04:17:44 +08:00
|
|
|
echo $tfa->getQRCodeImageAsDataUri($_SESSION['mailcow_cc_username'], $_GET['token']);
|
2019-03-19 15:45:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|