-
Notifications
You must be signed in to change notification settings - Fork 116
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
Basic usage help needed #39
Comments
Hey - just reading through the code snippet, I see that you are generating and emailing a code to the user here - why exctly are you doing that? You should never need to generate a code yourself, the An example flow would be:
I would also get the code from the query string by doing Hope this helps |
Some of the users who will be using our web app will not have smart phones (per their religion) and the best I can do is send the code to their work email so they can enter it back to the web app for verification. The main issue in my code is that I couldn't generate a code similar to my app on my smart phone. I'm new to Java so I have some learning curve but I already solved the request.getParameter('code') part Thanks |
I see - okay I understand the use case. The problem does indeed lie with the second parameter passed into the You can see how the library calculates and uses this counter number on this line in the So what you will need to do is replace the That should then start generating valid codes. |
Thanks |
Hi It failed to work. Here is the updated code: `
` |
I had same requirements, this worked for me, thank you |
Hi
Sorry for asking here if it's not the place but I tried stackoverflow with no response.
I'm trying to validate a token generated by an App (FortiToken Mobile if it matters) but the validator keeps returning false to me.
I went over the usage section in the home page here several times but I can't see what I missed.
Here is the code I play with - It has the qr code generation, validation, and trying to get a token so I can email the user for him to enter it back.
Any help/direction would be great
Thanks
`
`
The text was updated successfully, but these errors were encountered: