fix: 修复更新用户密码处理

This commit is contained in:
橙子
2024-10-07 22:24:02 +08:00
parent 8380cb1084
commit 44f94f8398

View File

@@ -159,7 +159,7 @@ namespace Yi.Framework.Rbac.Application.Services.System
var entity = await _repository.GetByIdAsync(id);
//更新密码,特殊处理
if (input.Password is not null)
if (!string.IsNullOrWhiteSpace(input.Password))
{
entity.EncryPassword.Password = input.Password;
entity.BuildPassword();