demo for verifyCode()
MatthewC opened this issue · comments
Hello, could you possibly create a demo for how to use verifyCode(), for example, a login page of some sort? I'm not very experience with PHP, and don't quite understand how to do this, and when running the command 'php composer.phar require robthree/twofactorauth', I get the error 'Could not open input file: composer.phar', is it suppose to be composer.json?
Maybe have a look in the demo folder? For support on composer you should read the composer docs / use their support channels.
Yes, but the demo folder doesn't really say anything about verifying the authentication token, only on how to generate one
It also demonstrates verifyCode()
? Just pass the secret and the user-entered code and it will return true
when it checks out, false
otherwise.
Also, step 3 of the README explains using verifyCode()
.
@RobThree Thank you for your quick responses, it was my fault for not noticing that it did actually verify the code, Thanks! :)
👍