-
Notifications
You must be signed in to change notification settings - Fork 182
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
Verify user then what? #165
Comments
Hi @movepixels You have to create a form containing a CSRF token like this :
and create a new post route as '/2fa' like this :
don't forget to set the input name in the config file that's it now it will be redirected and login user Good luck 👍 |
Sorry i failed to mention laravel serves as api access only, nuxt is front end so any csrf / blade templating is of no use With a few days of tinkering and sampling from your code i managed to lock the user to a 2fa page if enabled and needed to verfity before going anywhere or simply pass if not enabled. Pretty much 2 middleware i needed 1 for backend to restrict api access and one nuxt middleware to check also and decode |
I have everything running fine but I verify the users code from the Authenticator App
But then what? where is this value saved? How can we do a check if 2fa has been verified?
The middleware fails at every point so I will rather make my own but still how do we know where to pull if the user was verified?
Seems the documentation just ends with no clue of what to do next.
Any help / insight would be greatly appreciated.
The text was updated successfully, but these errors were encountered: