message = "用户账号不存在";
LOG.info(message+": " + username);
throw new UsernameNotFoundException(message);
}
User user = page.getModels().get(0);
message = user.loginValidate();
if(message != null){
LOG.info(message);
throw new UsernameNotFoundException(message);
}
//到了这里,如果用户还是不能登录,那么只有一种情况就是:密码不正确