fix: 修复更新用户密码处理
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Yi.Framework.Rbac.Application.Services.System
|
|||||||
|
|
||||||
var entity = await _repository.GetByIdAsync(id);
|
var entity = await _repository.GetByIdAsync(id);
|
||||||
//更新密码,特殊处理
|
//更新密码,特殊处理
|
||||||
if (input.Password is not null)
|
if (!string.IsNullOrWhiteSpace(input.Password))
|
||||||
{
|
{
|
||||||
entity.EncryPassword.Password = input.Password;
|
entity.EncryPassword.Password = input.Password;
|
||||||
entity.BuildPassword();
|
entity.BuildPassword();
|
||||||
|
|||||||
Reference in New Issue
Block a user