#Customer business logic into Login in Filament 3

7 messages · Page 1 of 1 (latest)

quartz plank
#

Hi guis, i hope you'all are great.

I am new in filament and i dont find information about how to custom login logic.

u created the basic or standard login. and in users table i just added a column called "user_status_id" and i only want to user who has 1 value in this column can login in. but if there's 2 or 3 will denie the login and in the login say a personal message, like "account suspended" just in the same way when we write the password wrong. somneone can please send me a guide to do this?

Tahnk you!

#

Customer business logic into Login in Filament 3

barren socket
#

You can create a custom Login::class that extends the default Login::class from Filament itself

#

Check that original class for methods to overwrite

ivory ore
#

Just create a custom Login class and put it inside the ->login()

#

just override the default class stuff