@@ -27,7 +27,7 @@ public class AppUserRepository extends AbstractHibernateRepository {
...
@@ -27,7 +27,7 @@ public class AppUserRepository extends AbstractHibernateRepository {
if(!StringUtils.hasText(username)){
if(!StringUtils.hasText(username)){
returnnull;
returnnull;
}
}
Queryq=entityManager.createQuery("select au from AppUser au left join fetch au.roles where lower(au.email) = :email");
Queryq=entityManager.createQuery("select au from AppUser au left join fetch au.roles where lower(au.email) = :email and (au.deleted is null or au.deleted = false)");