diff options
author | Christian Stocker <me@chregu.tv> | 2012-08-08 11:15:40 -0700 |
---|---|---|
committer | Christian Stocker <me@chregu.tv> | 2012-08-08 11:15:40 -0700 |
commit | f9e26734fde1030bb7305178d7fd1d3334f4540b (patch) | |
tree | ae95cdfa71b7d7ca01308fa1a1b4362719a07544 | |
parent | 502c7d2545a4185238930e479cc87d6adf9fd047 (diff) | |
parent | 45bc7282fedb2082eb2f88493df3ec62328892a8 (diff) | |
download | GoogleAuthenticator.php-f9e26734fde1030bb7305178d7fd1d3334f4540b.zip GoogleAuthenticator.php-f9e26734fde1030bb7305178d7fd1d3334f4540b.tar.gz GoogleAuthenticator.php-f9e26734fde1030bb7305178d7fd1d3334f4540b.tar.bz2 |
Merge pull request #2 from jhitesma/masterHEADorigin/masterorigin/HEADmaster
Fixed QR code URL
-rw-r--r-- | lib/GoogleAuthenticator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/GoogleAuthenticator.php b/lib/GoogleAuthenticator.php index 278e452..344c034 100644 --- a/lib/GoogleAuthenticator.php +++ b/lib/GoogleAuthenticator.php @@ -66,7 +66,7 @@ class GoogleAuthenticator { public function getUrl($user, $hostname, $secret) { $url = sprintf("otpauth://totp/%s@%s?secret=%s", $user, $hostname, $secret); $encoder = "https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl="; - $encoderURL = sprintf( "%sotpauth://totp/%s@%s%%3Fsecret%%3D%s",$encoder, $user, $hostname, $secret); + $encoderURL = sprintf( "%sotpauth://totp/%s@%s&secret=%s",$encoder, $user, $hostname, $secret); return $encoderURL; |