mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
14 lines
351 B
PHP
14 lines
351 B
PHP
|
<?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'])) {
|
||
|
echo $tfa->getQRCodeImageAsDataUri($_SESSION['mailcow_cc_username'], $totp_secret);
|
||
|
}
|
||
|
|
||
|
?>
|