diff --git a/internal/storage/sql_provider_queries.go b/internal/storage/sql_provider_queries.go index 8da7c132..8db6417f 100644 --- a/internal/storage/sql_provider_queries.go +++ b/internal/storage/sql_provider_queries.go @@ -174,7 +174,7 @@ const ( queryFmtSelect1FAAuthenticationLogEntryByUsername = ` SELECT time, successful, username FROM %s - WHERE time > ? AND username = ? AND auth_type = '1FA' AND banned = 0 + WHERE time > ? AND username = ? AND auth_type = '1FA' AND banned = FALSE ORDER BY time DESC LIMIT ? OFFSET ?;`