mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 21:42:32 +08:00
perf(X-Pack): 优化社区版token验证机制
This commit is contained in:
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 08cc93e3fb...7c95eb9a2c
@@ -40,9 +40,9 @@ public class CommunityTokenFilter implements Filter {
|
||||
String pwd = SubstituleLoginConfig.getPwd();
|
||||
secret = Md5Utils.md5(pwd);
|
||||
} else {
|
||||
Object apisixTokenManage = CommonBeanFactory.getBean("apisixTokenManage");
|
||||
Method method = DeReflectUtil.findMethod(apisixTokenManage.getClass(), "userCacheBO");
|
||||
Object o = ReflectionUtils.invokeMethod(method, apisixTokenManage, userId);
|
||||
Object apisixCacheManage = CommonBeanFactory.getBean("apisixCacheManage");
|
||||
Method method = DeReflectUtil.findMethod(apisixCacheManage.getClass(), "userCacheBO");
|
||||
Object o = ReflectionUtils.invokeMethod(method, apisixCacheManage, userId);
|
||||
Method pwdMethod = DeReflectUtil.findMethod(o.getClass(), "getPwd");
|
||||
Object pwdObj = ReflectionUtils.invokeMethod(pwdMethod, o);
|
||||
secret = pwdObj.toString();
|
||||
|
||||
Reference in New Issue
Block a user