PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication

Home Page:http://phpgangsta.de/4376

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Was does 3rd argument 'title' into getQRCodeGoogleUrl do?

nodesocket opened this issue · comments

I don't see the title showing up in Authy. Also, I can't seem to pass any special characters such as . or - into the first argument name as well.

The title will be shown in the Google Authenticator app before the URL ($name parameter).

Example:
$ga->getQRCodeGoogleUrl("example.com", $secret, "Title Test")
will be displayed in the Google Authenticator app as follows:
Title Test (example.com)

yes, first the title will be shown then it will echo the URL link