update 代码

This commit is contained in:
hellohao
2025-09-01 21:03:59 +08:00
2 changed files with 1 additions and 2 deletions
@@ -42,7 +42,6 @@ public class ShiroConfig {
bean.setUnauthorizedUrl("/authError");
bean.setFilterChainDefinitionMap(filterMap);
return bean;
}
@Bean
@@ -56,7 +56,7 @@ public class UserRealm extends AuthorizingRealm {
if(u==null){
return null;
}
//密码认证(防止泄露,不需要我们做)
//密码认证
return new SimpleAuthenticationInfo(u,u.getPassword(),"");
}
}