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)
-
0
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.
Have an answer to this question?
Log in
and write your answer.