From a593e4cbbb5442f02c8ada86edd32356bfa87b9a Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 9 Sep 2023 08:33:29 +0100 Subject: [PATCH] Use HTTPS instead (eventually to move this into a local library) --- rfc6238.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc6238.php b/rfc6238.php index 61e91418..6d4c22b3 100644 --- a/rfc6238.php +++ b/rfc6238.php @@ -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);