refactor: 个人信息修改密码

This commit is contained in:
CaptainB 2022-10-26 19:40:04 +08:00 committed by 刘瑞斌
parent 2e837f4c31
commit 80818f6428
2 changed files with 10 additions and 8 deletions

View File

@ -7,6 +7,7 @@ import io.metersphere.commons.utils.SessionUtils;
import io.metersphere.dto.UserDTO;
import io.metersphere.log.annotation.MsAuditLog;
import io.metersphere.request.AuthUserIssueRequest;
import io.metersphere.request.member.EditPassWordRequest;
import io.metersphere.request.member.EditSeleniumServerRequest;
import io.metersphere.request.member.QueryMemberRequest;
import io.metersphere.service.BaseUserService;
@ -43,6 +44,15 @@ public class BaseUserController {
return baseUserService.updateCurrentUser(user);
}
/*
* 修改当前用户密码
* */
@PostMapping("/update/password")
@MsAuditLog(module = OperLogModule.SYSTEM_USER, type = OperLogConstants.UPDATE, title = "个人密码")
public int updateCurrentUserPassword(@RequestBody EditPassWordRequest request) {
return baseUserService.updateCurrentUserPassword(request);
}
@GetMapping("/project/member/list")
public List<User> getProjectMemberListAll() {

View File

@ -190,14 +190,6 @@ public class UserController {
userService.deleteProjectMember(projectId, userId);
}
/*
* 修改当前用户密码
* */
@PostMapping("/update/password")
@MsAuditLog(module = OperLogModule.SYSTEM_USER, type = OperLogConstants.UPDATE, title = "个人密码")
public int updateCurrentUserPassword(@RequestBody EditPassWordRequest request) {
return userService.updateCurrentUserPassword(request);
}
/*管理员修改用户密码*/
@PostMapping("/special/password")