From 27f6d7e3a69424cab4d6427a222b28b507a2051a Mon Sep 17 00:00:00 2001 From: Lowell Torola Date: Mon, 5 Jan 2026 09:52:53 -0500 Subject: [PATCH] reenable verif and fix settings model bug --- backend/siarnaq/settings.py | 3 +++ frontend/.env.production | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/siarnaq/settings.py b/backend/siarnaq/settings.py index e3b243140..cc04ed764 100644 --- a/backend/siarnaq/settings.py +++ b/backend/siarnaq/settings.py @@ -351,6 +351,7 @@ class Base(Configuration): # Email Verification Configuration EMAIL_VERIFICATION_TOKEN_EXPIRY_TIME = 24 # Time in hours EMAIL_VERIFICATION_REQUIRED = False + EMAIL_VERIFICATION_ENABLED = True class Local(Base): @@ -544,6 +545,8 @@ class Production(Base): EMAIL_ENABLED = True FRONTEND_ORIGIN = "https://play.battlecode.org" + EMAIL_VERIFICATION_REQUIRED = True + EMAIL_VERIFICATION_ENABLED = True LOGGING: dict[str, Any] = { **_LOGGING_COMMON, diff --git a/frontend/.env.production b/frontend/.env.production index 341208f3a..a14e81aa8 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -2,4 +2,4 @@ VITE_THIS_URL=https://play.battlecode.org VITE_BACKEND_URL=https://api.battlecode.org VITE_REPLAY_URL=https://play.battlecode.org GENERATE_SOURCEMAP=false -VITE_EMAIL_VERIFICATION_ENABLED=false +VITE_EMAIL_VERIFICATION_ENABLED=true