Browse Source

Merge branch '6.4.x'

Closes gh-16409
pull/16411/head
Rob Winch 11 months ago
parent
commit
bb38fd3483
  1. 3
      core/src/main/java/org/springframework/security/authentication/ott/JdbcOneTimeTokenService.java

3
core/src/main/java/org/springframework/security/authentication/ott/JdbcOneTimeTokenService.java

@ -190,7 +190,8 @@ public final class JdbcOneTimeTokenService implements OneTimeTokenService, Dispo @@ -190,7 +190,8 @@ public final class JdbcOneTimeTokenService implements OneTimeTokenService, Dispo
}
public void cleanupExpiredTokens() {
List<SqlParameterValue> parameters = List.of(new SqlParameterValue(Types.TIMESTAMP, Instant.now()));
List<SqlParameterValue> parameters = List
.of(new SqlParameterValue(Types.TIMESTAMP, Timestamp.from(Instant.now())));
PreparedStatementSetter pss = new ArgumentPreparedStatementSetter(parameters.toArray());
int deletedCount = this.jdbcOperations.update(DELETE_ONE_TIME_TOKENS_BY_EXPIRY_TIME_QUERY, pss);
if (this.logger.isDebugEnabled()) {

Loading…
Cancel
Save