Przeglądaj źródła

带验证的修改密码和不带验证的修改密码

buzhanyi 7 miesięcy temu
rodzic
commit
d2170b86a6

+ 1 - 1
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/upms/controller/SysUserController.java

@@ -206,7 +206,7 @@ public class SysUserController {
             return ResMsg.error(CodeEnum.OLD_PWD_ERROR);
         }
         String newPass = URLDecoder.decode(sysUserDto.getPassword(), StandardCharsets.UTF_8.name());
-        newPass = RsaUtil.encrypt(newPass, ApplicationConstant.PUBLIC_KEY);
+        //newPass = RsaUtil.decrypt(newPass, ApplicationConstant.PRIVATE_KEY);
         if (!sysUserService.changePassword(tokenData.getUserId(), newPass)) {
             return ResMsg.error(CodeEnum.USER_NOT_FIND);
         }