Add status enabled/disabled field to user #2449
Replies: 1 comment
-
I would just do that in application code, not using this package. Just add a If you wanted to use this package for it, you could perhaps add a permission named "prevent login", and check for that during login. Either way, a couple ways to check one of the above during login would include:
Those are some ideas. I think Jeffrey Way covered doing this sort of thing in his various Laracasts videos on Laravel From Scratch and on building custom login authentication. |
Beta Was this translation helpful? Give feedback.
-
How can i add a status (enabled/disabled) field to user model to don't allow user login or anything else when it's disabled ?
Beta Was this translation helpful? Give feedback.
All reactions