mirror of
https://github.com/Hello-hao/Tbed.git
synced 2026-09-20 03:18:28 +00:00
update 代码
This commit is contained in:
@@ -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(),"");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user