# Extend user to allow disable it

**URL:** <https://forum.radzen.com/t/extend-user-to-allow-disable-it/2021>\
**Category:** Angular\
**Created:** [November 20, 2019, 5:26pm UTC](https://forum.radzen.com/t/extend-user-to-allow-disable-it/2021 "2019-11-20T17:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbotas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/p/74df32/32.png) [@pbotas](https://forum.radzen.com/u/pbotas)\
**Post date:** [November 20, 2019, 5:26pm UTC](https://forum.radzen.com/t/extend-user-to-allow-disable-it/2021/1 "2019-11-20T17:26:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 21, 2019, 6:49am UTC](https://forum.radzen.com/t/extend-user-to-allow-disable-it/2021/2 "2019-11-21T06:49:28Z")

</div>

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.
