Base solution for your next web application
Open Closed

AbpLoginResultType Result from LoginAsync #306


User avatar
0
twigman08 created

I am new to using Module Zero, and just manually installed it in my application. I wanted to do some quick tests on a login method and everything has been working great. I then wanted to test out when a user hasn't confirmed their email yet so I created a quick test user where their email is not confirmed. I noticed that the AbpLoginResultType enum has a UserEmailIsNotConfirmed so I checked for that result after LoginAsync, though found that the result still was still of Success even with a email that was not confirmed.

I didn't find it mentioned in the docs anywhere, but is their a setting or something to have this checked with Login, or do I have to override the LoginAsync method to check for this automatically? I am just going by the example in the docs where it checks for all the different results.

Did I make a mistake somewhere? Sorry if this was covered before and I missed it in the search.

Thanks.


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

    Hi,

    Sorry for this is not documented yet. There is a setting for that:, named "Abp.Zero.UserManagement.IsEmailConfirmationRequiredForLogin". You can set this to true using ISettingManager (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Setting-Management">http://www.aspnetboilerplate.com/Pages/ ... Management</a>).