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();