From 4d5c3bd8bfea7a5ae0b3cd606156a1e83e633bd9 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期三, 18 三月 2026 12:37:22 +0800
Subject: [PATCH] lsh#
---
rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/UserServiceImpl.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/UserServiceImpl.java b/rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/UserServiceImpl.java
index 0c9d279..e69a7ef 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/UserServiceImpl.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/system/service/impl/UserServiceImpl.java
@@ -11,10 +11,10 @@
import com.vincent.rsf.server.system.service.RoleMenuService;
import com.vincent.rsf.server.system.service.UserRoleService;
import com.vincent.rsf.server.system.service.UserService;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
+import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
-import javax.annotation.Resource;
+import jakarta.annotation.Resource;
import java.util.List;
@Service("userService")
@@ -25,7 +25,7 @@
@Resource
private RoleMenuService roleMenuService;
@Resource
- private BCryptPasswordEncoder bCryptPasswordEncoder;
+ private PasswordEncoder passwordEncoder;
@Override
public PageResult<User> pageRel(PageParam<User, BaseParam> pageParam) {
@@ -69,12 +69,12 @@
@Override
public boolean comparePassword(String dbPassword, String inputPassword) {
- return bCryptPasswordEncoder.matches(inputPassword, dbPassword);
+ return passwordEncoder.matches(inputPassword, dbPassword);
}
@Override
public String encodePassword(String password) {
- return password == null ? null : bCryptPasswordEncoder.encode(password);
+ return password == null ? null : passwordEncoder.encode(password);
}
@Override
--
Gitblit v1.9.1