|
@@ -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);
|
|
|
}
|