@Repository public interface JpaUserLoginAttemptRepository<D extends JpaUserLoginAttempt> extends UserLoginAttemptRepository<D>
Modifier and Type | Method and Description |
---|---|
void |
deleteLoginAttemptsOlderThan(Instant age) |
void |
deleteLoginAttemptsOlderThan(Instant age,
String authServerId) |
default Class<?> |
getDomainType() |
int |
resetLoginAttempts(String username,
String authServerId) |
countByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue, countByUsernameAndAuthServerIdAndConsideredTrue, readByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue
@Modifying @Query(value="update JpaUserLoginAttempt attempt set attempt.considered = false where attempt.username = :username and attempt.authServerId = :authServerId") int resetLoginAttempts(String username, String authServerId)
resetLoginAttempts
in interface UserLoginAttemptRepository<D extends JpaUserLoginAttempt>
@Modifying @Query(value="delete from JpaUserLoginAttempt attempt where attempt.attemptTime <= :age") void deleteLoginAttemptsOlderThan(Instant age)
deleteLoginAttemptsOlderThan
in interface UserLoginAttemptRepository<D extends JpaUserLoginAttempt>
@Modifying @Query(value="delete from JpaUserLoginAttempt attempt where attempt.attemptTime <= :age and attempt.authServerId = :authServerId") void deleteLoginAttemptsOlderThan(Instant age, String authServerId)
deleteLoginAttemptsOlderThan
in interface UserLoginAttemptRepository<D extends JpaUserLoginAttempt>
default Class<?> getDomainType()
getDomainType
in interface com.broadleafcommerce.common.extension.DomainTypeAware
Copyright © 2021. All rights reserved.