Files
probably-rendering-one-more…/apps/wiki/db/007_dynamic_code_auth.sql
T
codex-bot 0c1ed2d292
studio CI and deployment / verify-and-deploy (push) Successful in 1m14s
wiki CI and deployment / verify-and-deploy (push) Failing after 25m6s
Add SSH-provisioned TOTP login with JWT sessions
2026-10-27 00:12:12 +08:00

10 lines
320 B
PL/PgSQL

BEGIN;
CREATE TABLE IF NOT EXISTS auth_login_state (
id text PRIMARY KEY,
attempts integer NOT NULL DEFAULT 0,
window_start timestamptz NOT NULL DEFAULT clock_timestamp(),
last_step bigint NOT NULL DEFAULT -1
);
INSERT INTO schema_migrations(version) VALUES ('007_dynamic_code_auth') ON CONFLICT DO NOTHING;
COMMIT;