Good example of how to extend filament login logic. Two remarks: 1. Why not override the authenticate method of the base class by performing the custom logic and then calling the base class authenticate method impementation in case the custom logic passes. This would protect against future changes in the filament base class. 2. I consider showing the reason why the login fails as an elevated security risk. Just 'login failed' as a general message is enough 🙂
happy new year... thanks for staying active on youtube... how can I keep track of user activity, i.e. know which items were created, changed or deleted by users...
Happy new year ! Thank you for this useful content My approach would be to create a custum rule and call it in the email input but I never tried. Do you think it could work?
Thanks Povilas!
Pretty good!
Good example of how to extend filament login logic.
Two remarks:
1. Why not override the authenticate method of the base class by performing the custom logic and then calling the base class authenticate method impementation in case the custom logic passes. This would protect against future changes in the filament base class.
2. I consider showing the reason why the login fails as an elevated security risk. Just 'login failed' as a general message is enough 🙂
Good suggestions!
Just override the form and add a new Custom Validation Rule
happy new year... thanks for staying active on youtube... how can I keep track of user activity, i.e. know which items were created, changed or deleted by users...
use package like spatie activity
Happy new year !
Thank you for this useful content
My approach would be to create a custum rule and call it in the email input but I never tried. Do you think it could work?
why not try it?
Yes that could probably also work
Once user is deactivated, how can i automatically log them out and display that validation error on login page?
middleware
The filament creates a problem in performance
so don't use it
@@krekas yes i not used it in big project and online project .
I’ve used filament in a large project currently online and serving 100s of users. I did not notice any performance issue