huohu1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user