Hello Team,
I would like to enable/disable a user . If the user is disabled/lockedout he should be prevented from logging into software. Which is the easiest way to achieve the same.
Could you kindly guide.
The only option I can suggest is described in this thread:
In Blazor this is AccountController.
1 Like
Thanks for the guidance,
I extended the aspnetusers table by adding enabled (bit) column. Extended the accountcontroller using partial class. Added a new httpost method based on the login method and added logic to check the enabled column property
[HttpPost("/account/loginnew")]
Changed the loginpage action property to loginnew
Thanks !