antonioribeiro / google2fa-laravel

A One Time Password Authentication package, compatible with Google Authenticator for Laravel
MIT License
925 stars 181 forks source link

Not possible to assign 2 differents Auth guard #103

Open Mikimike31 opened 4 years ago

Mikimike31 commented 4 years ago

I work for a project who use 2 differents auth gards : one for users and one for admins. So the Authentificate is doing by 2 different Auth page After tested google2fa-laravel, I think it's not possible to configure 2 differents guards on the same laravel app. Have you any solution for my problem ? A good way could be add gard parameter in middleware, to have : $this->middleware('2fa:admin') Thank you

Kokil commented 3 years ago

+1

marcelocuba10 commented 2 years ago

Me pregunto lo mismo