From beb9b0ee8218ac90a2329f39f89003da68b5a071 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Fri, 2 Aug 2024 17:28:15 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E7=94=A8=E6=88=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=82=AE=E7=AE=B1=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20close=20https://github.com/elunez/eladmin-mp/issues?= =?UTF-8?q?/36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/zhengjie/modules/system/rest/UserController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eladmin/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java b/eladmin/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java index f46a499..f83f5fd 100644 --- a/eladmin/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java +++ b/eladmin/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java @@ -189,8 +189,8 @@ public class UserController { if(!passwordEncoder.matches(password, user.getPassword())){ throw new BadRequestException("密码错误"); } - verificationCodeService.validated(CodeEnum.EMAIL_RESET_EMAIL_CODE.getKey() + user.getEmail(), code); - userService.updateEmail(user.getUsername(),user.getEmail()); + verificationCodeService.validated(CodeEnum.EMAIL_RESET_EMAIL_CODE.getKey() + resources.getEmail(), code); + userService.updateEmail(user.getUsername(),resources.getEmail()); return new ResponseEntity<>(HttpStatus.OK); }