fix:修复重置密码为空的问题

This commit is contained in:
陈淳
2023-07-19 01:24:27 +08:00
parent dfe8806344
commit d62baa0e51

View File

@@ -346,7 +346,7 @@ namespace Yi.Furion.Application.Rbac.Services.Impl
[HttpPut] [HttpPut]
public async Task<bool> RestPasswordAsync(long userId, RestPasswordDto input) public async Task<bool> RestPasswordAsync(long userId, RestPasswordDto input)
{ {
if (!string.IsNullOrEmpty(input.Password)) if (string.IsNullOrEmpty(input.Password))
{ {
throw new UserFriendlyException("重置密码不能为空!"); throw new UserFriendlyException("重置密码不能为空!");
} }