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

Key not recognized

shantiwebsolution opened this issue · comments

Code works perfectly.
While I create QR Code and try to scan with Google authentication app I am getting Key is not recognized error.
Kindly help

Here is my code

require 'vendor/autoload.php'; $username = 'jayesh_d'; $salt = $this->config->item('salt'); $ga = new PHPGangsta_GoogleAuthenticator(); $secret = $username.$salt; echo '<img src="'. $ga->getQRCodeGoogleUrl('', $secret).'" />';