Login issues
Using the shield plugin. Must be something simple but I'm stuck. In my seeder I have:
Logging in with [email protected] works, logging in with [email protected] IO get "These credentials do not match our records."
Any suggestions?
Solution:Jump to solution
after many hours I realised that you get this message if you have not assigned the user the panel_user role. Adding this fixed the issue. Having the super admin role overrides the need for the panel_user role hence [email protected] was working:
```php
$user = User::factory()->create([
'name' => 'Admin User',...
4 Replies
Do you use a custom auth guard?
(PS: Please check #✅┊rules on how to format code)
Solution
after many hours I realised that you get this message if you have not assigned the user the panel_user role. Adding this fixed the issue. Having the super admin role overrides the need for the panel_user role hence [email protected] was working:
There is no
panel_user
role in Filament. This is probably something you set up yourself?
Or is this from #bezhansalleh-shield ?Yes, apologies I'm using Shield. I've updated the original message to help anyone searching in the future