|
@@ -115,6 +115,9 @@ public class UserDaoHibernate extends GenericDaoHibernate<User, Long> implements
|
|
log.info("loadUserByUsername-username2:{}",username);
|
|
log.info("loadUserByUsername-username2:{}",username);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ throw new UsernameNotFoundException("user '" + username
|
|
|
|
+ + "' not found...");
|
|
}
|
|
}
|
|
String strHql = "from User where (username=? or telephone=?) and isenabled=1";
|
|
String strHql = "from User where (username=? or telephone=?) and isenabled=1";
|
|
List<User> users = getSession().createQuery(strHql).setString(0, username).setString(1, username).list();
|
|
List<User> users = getSession().createQuery(strHql).setString(0, username).setString(1, username).list();
|