Base solution for your next web application
Open Closed

Login with extra condition #2125


User avatar
0
sison created

Hi!

How can i check one more condition while login a user, like I have added a new column in AbpUsers table named IsPaid(bool). i need to check whether the value is true while login and login only if the value is true. :!:


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can create your own LoginManager derived from AbpLoginManager. See <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/cab121b66dcaf4884cd23ae3f4f0c22f67734eef/src/Abp.Zero/Authorization/AbpLoginManager.cs">https://github.com/aspnetboilerplate/mo ... Manager.cs</a>.

    And override the LoginAsync method as you like.