diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-11-30 19:45:24 +1100 |
|---|---|---|
| committer | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-04 20:29:12 +1100 |
| commit | e4e878f05f8ae1e1784b3ac190459b2d506f796c (patch) | |
| tree | ed8f5b927156300dddff33f3e14bc732803ea405 /internal/storage/sql_provider_queries.go | |
| parent | 61c30b373f8c5ee14321e82c8d7210aae7d260c3 (diff) | |
build(deps): use go.uber.org/mock
Use the new go.uber.org/mock which is currently maintained.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/storage/sql_provider_queries.go')
| -rw-r--r-- | internal/storage/sql_provider_queries.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/storage/sql_provider_queries.go b/internal/storage/sql_provider_queries.go index bff832dbd..48be6d2af 100644 --- a/internal/storage/sql_provider_queries.go +++ b/internal/storage/sql_provider_queries.go @@ -167,6 +167,17 @@ const ( WHERE id = ?;` ) +const ( + queryFmtInsertTOTPHistory = ` + INSERT INTO %s (username, step) + VALUES (?, ?);` + + queryFmtSelectTOTPHistory = ` + SELECT COUNT(id) + FROM %s + WHERE username = ? AND step = ?;` +) + //nolint:gosec // The following queries are not hard coded credentials. const ( queryFmtSelectWebAuthnCredentials = ` |
