Open nicholas-wcy opened 10 months ago
If you haven't found the solution, you needed to invoke the Google2FA::login()
after a successful verification
I got
Call to undefined method PragmaRX\Google2FA\Google2FA::login()
The login method is from which class?
I got
Call to undefined method PragmaRX\Google2FA\Google2FA::login()
The login method is from which class?
You need to call the class:
use Google2FA;
I want to implement google authenticator to my app so after user logins, they will be prompt to enter the TOTP.
So far, I have followed the package documentation and install it as well as setting up the middleware,etc.
Here is my login method:
My auth.google2fa.show.blade.php:
TwoFactorController.php :
Config google2fa.php:
web.php:
While the flow and logic works fine up until the verification OTP, when I enter a valid OTP, it verifies successfully but it does not redirect to the home dashboard. It just redirects back to the OTP page. I assumed is because it somehow did not "pass" the 2fa middleware in my routes. I am not sure why is this the case or if I am missing something as i could not find a solution online for my issue.
Does anyone know the issue?