Use HTTPS instead (eventually to move this into a local library)

This commit is contained in:
Marcus Hill 2023-09-09 08:33:29 +01:00
parent 6cb3d8f9d0
commit a593e4cbbb
1 changed files with 1 additions and 1 deletions

View File

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