2 Commits

Author SHA1 Message Date
daxpay
62b5c51593 Merge remote-tracking branch 'origin/dev' into dev 2025-05-20 14:48:44 +08:00
daxpay
0ff4198ee1 fix 密码修改校验问题 2025-05-20 14:48:33 +08:00

View File

@@ -100,7 +100,7 @@ public class UserInfoService {
.orElseThrow(UserInfoNotExistsException::new);
// 判断原密码是否正确
if (!BCrypt.checkpw(newPassword, userInfo.getPassword())) {
if (!BCrypt.checkpw(password, userInfo.getPassword())) {
throw new BizException("旧密码错误");
}
userInfo.setPassword(newPassword);