I'm working on adding Google 2FA to my Laravel 5.5 app that is using the Laravel generated authentication methods.
I have the 2FA portions figured out, but I cannot for the life of me find where to inject the code to add the 2FA check to the login process.
I have already modified the form to show the 2FA field on the login form, but where do I put that check? I see the options to add it as middleware and apply that to certain pages, but I don't want to require 2FA on multiple pages, just on login.
I did finally find the controller file that handles authentication (vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php), but I don't see anywhere in there that I could add the 2FA check (obviously I would overwrite the method in my own file, not modify the vendor file).
Any help would be greatly appreciated.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LAC0Bk
via IFTTT
Aucun commentaire:
Enregistrer un commentaire