Commit b555b181 by guojuxing

修改密码接口修复

parent 332649cc
......@@ -228,6 +228,9 @@ public class UserController {
if (!login.isSuccess()) {
return EnterpriseRestResponse.failure(login);
}
if (login.getResult() == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "旧密码错误");
}
ServiceResponse<String> result = userApiService.editPhoneOrPassword(login.getResult().getUserId(),
null, null, md5.encrypt(newPassword + newPassword));
return OperationResultUtils.operationResult(result, "修改密码",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment