Hello everyone.
I need to be able to disable the user's account and block access to the panel. If the user is authorized, then display a page informing him that his account has been disabled/suspended.
1. Tell me how to implement disabling/suspending a user account?
Add a status field with values 0 and 1 to the users table? Or the is_active field with values 0 or 1. How to do it better? What's good practice?
2. How to display a separate page with a message that the user’s account has been disabled/suspended?
How to do it better? What's good practice?