feat(auth): add the ability for users to bypass idv checks

This commit is contained in:
2026-03-30 00:49:48 +02:00
parent 5b7e9e7a82
commit 3dcb726207
7 changed files with 262 additions and 40 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "bypassVerification" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -0,0 +1,10 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "AdminAuditAction" ADD VALUE 'BYPASS_VERIFICATION_ENABLED';
ALTER TYPE "AdminAuditAction" ADD VALUE 'BYPASS_VERIFICATION_DISABLED';

View File

@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"
provider = "postgresql"

View File

@@ -24,6 +24,7 @@ model User {
hackClubVerificationResult String?
hackClubVerificationCheckedAt DateTime?
bypassVerification Boolean @default(false)
hasOnboarded Boolean @default(false)
isAdmin Boolean @default(false)
@@ -311,6 +312,8 @@ enum AdminAuditAction {
REPORT_REVIEWED
REPORT_DISMISSED
REPORT_ENFORCEMENT
BYPASS_VERIFICATION_ENABLED
BYPASS_VERIFICATION_DISABLED
}
enum ChatModerationAction {