2FA reset feature

This commit is contained in:
Francis Cao committed 2026-07-24 10:46:19 -07:00
1 parent 896d63df94
commit 3b4d5b9575
7 files changed
+262 -28

No files matched your search

+5 -1
View File
@@ -66,4 +66,8 @@ CREATE INDEX "two_factor_backup_code_user_id_idx" ON "two_factor_backup_code"("u
CREATE UNIQUE INDEX "two_factor_otp_used_user_id_otp_key" ON "two_factor_otp_used"("user_id", "otp");
-- CreateIndex
CREATE UNIQUE INDEX "two_factor_rate_limit_user_id_key" ON "two_factor_rate_limit"("user_id");
CREATE UNIQUE INDEX "two_factor_rate_limit_user_id_key" ON "two_factor_rate_limit"("user_id");
-- Historical catch-up: some environments already have this replay index,
-- but the current schema expects it everywhere.
CREATE INDEX IF NOT EXISTS "session_replay_visit_id_idx" ON "session_replay"("visit_id");