What’s the best practice to add a simple active flag to a user record that the AuthComponent will respect during the login sequence? I have a simple boolean field in my user table. That flag needs to be set to allow the user to login. Otherwise, they get the normal “You can’t login” error.
I’ve googled around and can’t find any good examples of how to add this. Thanks in advance!
If I understand what you’re after, I use the following line of code in my
app_controller:In my case, the
userModelisAdministrator.