hi
Can you try setting includeDetails to false during ResetPasswordAsync and then try again?
var user = await IdentityUserRepository.GetAsync(input.UserId, includeDetails: false);
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Account.Emailing;
using Volo.Abp.Account.PhoneNumber;
using Volo.Abp.BlobStoring;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Identity;
using Volo.Abp.Imaging;
using Volo.Abp.SettingManagement;
namespace MyCompanyName.MyProjectName;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(AccountAppService), typeof(IAccountAppService))]
public class MyAccountAppService : AccountAppService
{
protected IIdentityUserRepository IdentityUserRepository { get; set; }
public MyAccountAppService(
IdentityUserManager userManager,
IAccountEmailer accountEmailer,
IAccountPhoneService phoneService,
IIdentityRoleRepository roleRepository,
IdentitySecurityLogManager identitySecurityLogManager,
IBlobContainer<AccountProfilePictureContainer> accountProfilePictureContainer,
ISettingManager settingManager,
IOptions<IdentityOptions> identityOptions,
IIdentitySecurityLogRepository securityLogRepository,
IImageCompressor imageCompressor,
IOptions<AbpProfilePictureOptions> profilePictureOptions,
IApplicationInfoAccessor applicationInfoAccessor,
IdentityUserTwoFactorChecker identityUserTwoFactorChecker,
IDistributedCache<EmailConfirmationCodeCacheItem> emailConfirmationCodeCache,
IdentityErrorDescriber identityErrorDescriber,
IOptions<AbpRegisterEmailConfirmationCodeOptions> registerEmailConfirmationCodeOptions,
IIdentityUserRepository identityUserRepository)
: base(userManager, accountEmailer, phoneService, roleRepository, identitySecurityLogManager,
accountProfilePictureContainer, settingManager, identityOptions, securityLogRepository, imageCompressor,
profilePictureOptions, applicationInfoAccessor, identityUserTwoFactorChecker, emailConfirmationCodeCache,
identityErrorDescriber, registerEmailConfirmationCodeOptions)
{
IdentityUserRepository = identityUserRepository;
}
public override async Task ResetPasswordAsync(ResetPasswordDto input)
{
await IdentityOptions.SetAsync();
var user = await IdentityUserRepository.GetAsync(input.UserId, includeDetails: false);
(await UserManager.ResetPasswordAsync(user, input.ResetToken, input.Password)).CheckErrors();
await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext
{
Identity = IdentitySecurityLogIdentityConsts.Identity,
Action = IdentitySecurityLogActionConsts.ChangePassword
});
}
}
Thanks
Thanks. I will check it.
Thanks. I will check it.
hi
Have you removed app.UseAbpSecurityHeaders(); from all backend websites?
Thanks,
hi
You can open a new ticket.
Thanks.
hi
Can you also share the source code of FortisIaResetPasswordModel(FortisIA.AuthServer.Pages.Account.FortisIaResetPasswordModel)?
Thanks.
hi
The BlobStoring.Database module is not an infrastructure module. You need to add it by yourself.
Thanks.
hi
Can you share the debug logs of AuthServer and API websites? https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
liming.ma@volosoft.com
Thanks