Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Issue with missing data #4760


User avatar
0
rattlehub created

When a user tries to activate there email we have a issue where user.EmailConfirmationCode in the ActivateEmail service always returns null calling the user as follows ( var user = await UserManager.GetUserByIdAsync(input.UserId); ), even though i can see the record in the db for the specified userid

Even if i restart the app, its always null so not sure how to solve this.


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

    You probably need to disable filter:

    using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
    {
        var user = await UserManager.GetUserByIdAsync(input.UserId);
    
        // ...
    }