This commit is contained in:
“wanyongkang”
2021-06-04 18:50:47 +08:00
parent 4a26831eb1
commit 32afbd895b
6 changed files with 23 additions and 5 deletions

View File

@@ -156,7 +156,7 @@ namespace Hncore.Pass.Vpn.Service
{
return new ApiResult(ResultCode.C_INVALID_ERROR, "账号不存在");
}
if (request.Pwd.NotHas())
if (request.Pwd.NotHas()&&request.RePwd.NotHas())
{
return new ApiResult(ResultCode.C_INVALID_ERROR, "密码不能为空");
}
@@ -165,7 +165,7 @@ namespace Hncore.Pass.Vpn.Service
{
return new ApiResult(ResultCode.C_INVALID_ERROR, "远程更新失败");
}
entity.Pwd = request.Pwd;
entity.Pwd = request.RePwd;
await this.Update(entity);
return new ApiResult(1);
}