diff --git a/lib/Google/Authenticator/GoogleAuthenticator.php b/lib/Google/Authenticator/GoogleAuthenticator.php index 5041e44..5ba7ee0 100644 --- a/lib/Google/Authenticator/GoogleAuthenticator.php +++ b/lib/Google/Authenticator/GoogleAuthenticator.php @@ -99,7 +99,7 @@ protected static function hashToInt($bytes, $start) */ public function getUrl($user, $hostname, $secret) { - $encoder = "https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl="; + $encoder = "https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl="; $encoderURL = sprintf("%sotpauth://totp/%s@%s%%3Fsecret%%3D%s", $encoder, $user, $hostname, $secret); return $encoderURL;