first commit
This commit is contained in:
commit
098f59b644
3632 changed files with 518046 additions and 0 deletions
10
mailcow/data/web/inc/ajax/qr_gen.php
Normal file
10
mailcow/data/web/inc/ajax/qr_gen.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
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'], $_GET['token']);
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue