fix:修复重置密码为空的问题
This commit is contained in:
@@ -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("重置密码不能为空!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user