Closed pitometsyurii closed 8 years ago
The first parameter of the function getQRCodeGoogleUrl() is a "name" for the QRCode: https://github.com/PHPGangsta/GoogleAuthenticator/blob/022046934a85217739b4e7610a37fcc8ffdf986e/PHPGangsta/GoogleAuthenticator.php#L95
The exact format is described here: https://github.com/google/google-authenticator/wiki/Key-Uri-Format
If you scan the resulting QRCode image with your mobile phone, the name will be displayed, like this:
The name helps you to distinguish the TOTP-Token in the Authenticator App, if you have multiple ones. It can be an email address, or a URL, or anything.
In example.php there is mystic variable for me 'Blog'. Could you please explain what is that means and if it can be changed to other value?
$qrCodeUrl = $ga->getQRCodeGoogleUrl('Blog', $secret);