Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
theredcmdcraft opened this issue Apr 7, 2021 · 1 comment

Comments

@theredcmdcraft
Copy link

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

@greenreader9
Copy link

`$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';
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants