fix: complete two_factor schema to full plugin field set

Adds failedVerificationCount and lockedUntil (brute-force tracking
maintained by the two-factor plugin). The adapter rejects any
two-factor endpoint while declared fields are missing from the drizzle
schema; verified was already added in the previous commit.
This commit is contained in:
Leon Tonhäuser committed 2026-08-25 03:27:51 +02:00
1 parent f42f4d5d2d
commit 11cde23cdb
4 files changed
+1971 -4

No files matched your search

@@ -0,0 +1,2 @@
ALTER TABLE "two_factor" ADD COLUMN "failed_verification_count" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE "two_factor" ADD COLUMN "locked_until" timestamp with time zone;
File diff suppressed because it is too large. Load diff
+7
View File
@@ -85,6 +85,13 @@
"when": 1787620365940,
"tag": "0011_two-factor-verified",
"breakpoints": true
},
{
"idx": 12,
"version": "7",
"when": 1787621254728,
"tag": "0012_two-factor-plugin-fields",
"breakpoints": true
}
]
}