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

This reverts commit 61e100c98b.
This commit is contained in:
Marcus Hill
2023-01-30 19:31:00 +00:00
parent 6eaba3440b
commit a7e4c18fee
2 changed files with 3 additions and 3 deletions

View File

@@ -58,10 +58,10 @@
return $result;
}
public static function getBarCodeUrl($app_name, $email, $secretkey, $issuer) {
public static function getBarCodeUrl($username, $domain, $secretkey, $issuer) {
$url = "http://chart.apis.google.com/chart";
$url = $url."?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/";
$url = $url.$app_name . ": " . $email . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
$url = $url.$username . "@" . $domain . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
return $url;
}