Open Closed

Issue with missing data #4760


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)
  • 0
    aaron created
    Support Team

    You probably need to disable filter:

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