Adjusted the 2FA QR code generator for easier setup/identification in the 2FA app

- Swap out username for full email
- Add the configured app name (default: ITFlow) to the start of the token identifier
This commit is contained in:
Marcus Hill
2023-01-30 19:11:13 +00:00
parent d2124b92f1
commit 61e100c98b
2 changed files with 3 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ $sql_recent_logs = mysqli_query($mysqli, "SELECT * FROM logs
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']));
print sprintf('<img src="%s"/>',TokenAuth6238::getBarCodeUrl($config_app_name, $session_email, $session_token, $_SERVER['SERVER_NAME']));
echo "<p class='text-secondary'>$session_token</p>";
}