mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
2FA QR Codes
Move away from the Google Charts API for generating QR codes as this is currently broken and not a security best practice.
This commit is contained in:
@@ -36,8 +36,9 @@ require_once "header.php";
|
||||
|
||||
if (!empty($session_token)) {
|
||||
|
||||
//Generate QR Code based off the generated key
|
||||
print sprintf('<img src="%s"/>', TokenAuth6238::getBarCodeUrl($session_name, ' ', $session_token, $_SERVER['SERVER_NAME']));
|
||||
// Generate QR Code
|
||||
$data = "otpauth://totp/ITFlow:$session_email?secret=$session_token";
|
||||
print "<img src='plugins/barcode/barcode.php?f=png&s=qr&d=$data'>";
|
||||
|
||||
echo "<p class='text-secondary'>$session_token</p>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user