| | |
| | | protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { |
| | | // 获取用户名 |
| | | ShiroToken authenticationToken =(ShiroToken) token; |
| | | if(authenticationToken .getUpdateFlag() == 1){ |
| | | //如果是更新session |
| | | return new SimpleAuthenticationInfo(authenticationToken.getUpdateUser(), authenticationToken.getPassword(), this.getName()); |
| | | }else{ |
| | | String username = authenticationToken.getPrincipal().toString(); |
| | | boolean isDdLogin = authenticationToken.getDdLogin(); |
| | | // 根据用户名查询用户对象 |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |