fix: 修复重置密码问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user