fix: 修复重置密码问题

This commit is contained in:
陈淳
2024-03-26 17:12:30 +08:00
parent d752c97aff
commit c2c92ab196

View File

@@ -261,7 +261,7 @@ namespace Yi.Framework.Rbac.Domain.Managers
public async Task<bool> RestPasswordAsync(Guid userId, string password)
{
var user = await _repository.GetByIdAsync(userId);
EntityHelper.TrySetId(user, () => GuidGenerator.Create(), true);
// EntityHelper.TrySetId(user, () => GuidGenerator.Create(), true);
user.Password = password;
user.BuildPassword();
return await _repository.UpdateAsync(user);