Extend user to allow disable it

I would like to extend the user entity to allow disable it and prevent it from logging in.
Extend the user to create the field is no problem, but prevent it from logging in doesn't seem possible without changing the file AuthController.cs and adding it to ignore list.
Am I right?

Yes, you would need to add the AuthController.cs to the code generation ignore list if you want to modify it. This shouldn't be a problem though.

1 Like