Revert "URL encode the email"

This reverts commit f39098be0d.
This commit is contained in:
Marcus Hill 2023-01-30 19:30:38 +00:00
parent f39098be0d
commit 6eaba3440b
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
public static function getBarCodeUrl($app_name, $email, $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 . ": " . rawurlencode($email) . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
$url = $url.$app_name . ": " . $email . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
return $url;
}