FilamentF
Filament14mo ago
Sam ツ

Blocking logins from different domains

Hi, is there some sort of protection that whenever an admin tries to login that has an email that does not match the website it blocks that. What I am experiencing:

All users with mail@sitedomain.com work and are able to login but whenever I change an users mail to mail@differentdomain.com the login states that credentials do not match. If I change the mail address back again to mail@sitedomain.com it works like expected again.
Solution
Check your canAccess function on the user model, maybe you're checking the email domain there. By default laravel auth doesnt block access based on the domain.
Was this page helpful?