forked from Business/AccountHub
Cleanup unused files
parent
7e03e9f5e2
commit
32fc134269
@ -1,3 +0,0 @@
|
||||
<?php
|
||||
|
||||
require __DIR__ . "/required.php";
|
File diff suppressed because it is too large
Load Diff
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
require __DIR__ . "/required.php";
|
||||
require __DIR__ . "/lib/login.php";
|
||||
|
||||
use Endroid\QrCode\QrCode;
|
||||
use OTPHP\TOTP;
|
||||
|
||||
if ($_GET['show'] == '1') {
|
||||
|
||||
$totp = new TOTP(
|
||||
"admin@netsyms.com", // The label (string)
|
||||
"ZBUJDTW5D5E6KBMDICAJSKRCX6VGQZCZ" // The secret encoded in base 32 (string)
|
||||
);
|
||||
|
||||
echo "Current OTP: " . $totp->now();
|
||||
|
||||
die();
|
||||
} else {
|
||||
|
||||
$user = "skylarmt";
|
||||
|
||||
$totp = newTOTP($user);
|
||||
|
||||
// Create a QR code
|
||||
$qrCode = new QrCode($totp);
|
||||
$qrCode->setSize(300);
|
||||
|
||||
// now we can output the QR code
|
||||
header('Content-Type: ' . $qrCode->getContentType(QrCode::IMAGE_TYPE_PNG));
|
||||
$qrCode->render(null, 'png');
|
||||
}
|
Loading…
Reference in New Issue