afsakar / filament-otp-login

OTP Login for FilamentPHP
https://filamentphp.com/plugins/afsakar-otp-login
MIT License
42 stars 11 forks source link

Changing the logic of the checkCredentials method #4

Closed leonardyrj closed 5 months ago

leonardyrj commented 5 months ago

In my project I use two different guards for each filament panel.

As it is, the first access doesn't work, because I can only place one model.

This way I put it, it will get the default guard from the panel and it will get the provider table.

So there is no longer any need to decide which model to take.

afsakar commented 5 months ago

Hey @leonardyrj,

Thank you for your PR. I didn't have the opportunity to try it in multi panel, so thank you for seeing this problem and providing a solution.