GoogleAuthenticator icon indicating copy to clipboard operation
GoogleAuthenticator copied to clipboard

Question: How do i check the Code from the App Google Authenticator?

Open theredcmdcraft opened this issue 3 years ago • 1 comments

I got a code from the App. like 050 221. How do i check the Code if it is right?

theredcmdcraft avatar Apr 07 '21 09:04 theredcmdcraft

`$authenticator = new PHPGangsta_GoogleAuthenticator();

$secret = '3JMZE4ASZRIISJRI'; //The users secret key $key= '183036' ; //The number generated by app.

$checkKey = $authenticator->verifyCode($secret, $key, 0);

if ($checkKey ) { echo 'Validated Succesfully';

} else { echo 'FAILED'; }`

greenreader9 avatar Jun 12 '22 18:06 greenreader9