anderx 7 anni fa
parent
commit
32e2a34018

+ 1 - 1
src/main/java/com/goafanti/core/shiro/token/UserRealm.java

@@ -60,7 +60,7 @@ public class UserRealm extends AuthorizingRealm {
 			return new SimpleAuthenticationInfo(aftUser, aftUser.getPassword(), passwordUtil.getAftSalt(aftUser),
 					getName());
 		} else {
-			User user = userService.selectByNameAndType(token.getUsername(), null);
+			User user = userService.selectByNameAndType(token.getUsername(), token.getType());
 			if (null == user) {
 				throw new UnknownAccountException();
 			}