Disabling a User by admin and the user cannot log in

Are there any links or suggestions you could give me to make this?

Thank you :slight_smile: !!!

  1. Add a status field to the user table / AR model.
  2. Set it to 1 by default (means enabled).
  3. Allow setting it to 0 and back via admin panel. When setting to 0 invalidate user keys so “remember me” cookie expires (same user model).
  4. On login select only users with status = 1.

im new to yii2 can you give me an example