refactor: 个人信息修改密码
This commit is contained in:
parent
2e837f4c31
commit
80818f6428
|
@ -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() {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue