Browse files

Fixed URL for QR code display.

  • Loading branch information...
1 parent 502c7d2 commit 45bc7282fedb2082eb2f88493df3ec62328892a8 @jhitesma jhitesma committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/GoogleAuthenticator.php
View
2 lib/GoogleAuthenticator.php
@@ -66,7 +66,7 @@ protected function hashToInt($bytes, $start) {
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;

0 comments on commit 45bc728

Please sign in to comment.