Skip to content

Commit b586107

Browse files
committed
修复修改密码时的 bug
1 parent cb7013c commit b586107

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api-admin/src/main/java/com/lmxdawn/api/admin/controller/auth/LoginController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public BaseResponse password(@RequestBody @Valid UpdatePasswordRequest updatePas
137137
}
138138

139139
AuthAdmin authAdminUp = new AuthAdmin();
140+
authAdminUp.setId(authAdmin.getId());
140141
String newPwd = PasswordUtils.authAdminPwd(updatePasswordRequest.getNewPassword());
141142
authAdminUp.setPassword(newPwd);
142143

0 commit comments

Comments
 (0)