anderx 7 роки тому
батько
коміт
8b6521930b

+ 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(), token.getType());
+			User user = userService.selectByMobieAndType(token.getUsername(), token.getType());
 			if (null == user) {
 				throw new UnknownAccountException();
 			}