From 37e87615086625950f7dd5ac44c88ce04f430228 Mon Sep 17 00:00:00 2001 From: mashuai Date: Wed, 5 Jun 2024 17:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=8A=A0=E8=A7=A3=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/sgzb/system/controller/SysProfileController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SysProfileController.java b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SysProfileController.java index 032eea02..47d8381f 100644 --- a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SysProfileController.java +++ b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SysProfileController.java @@ -90,10 +90,10 @@ public class SysProfileController extends BaseController { */ @Log(title = "个人信息", businessType = BusinessType.UPDATE) @PutMapping("/updatePwd") - public AjaxResult updatePwd(String oldPassword, String newPassword) throws Exception { + public AjaxResult updatePwd(String actionCode, String handleCode) throws Exception { //对新老密码进行解密 - String oldDecrypt = RsaUtil.decryptByPrivateKey(oldPassword, Constants.privateKey); - String newDecrypt = RsaUtil.decryptByPrivateKey(newPassword, Constants.privateKey); + String oldDecrypt = RsaUtil.decryptByPrivateKey(actionCode, Constants.privateKey); + String newDecrypt = RsaUtil.decryptByPrivateKey(handleCode, Constants.privateKey); String username = SecurityUtils.getUsername(); SysUser user = userService.selectUserByUserName(username); String password = user.getPassword();