Skip to content

Commit 8cccdcd

Browse files
authored
reenable verif and fix settings model bug (#978)
here we goooooo :shipit:
1 parent 015afb3 commit 8cccdcd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

backend/siarnaq/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class Base(Configuration):
351351
# Email Verification Configuration
352352
EMAIL_VERIFICATION_TOKEN_EXPIRY_TIME = 24 # Time in hours
353353
EMAIL_VERIFICATION_REQUIRED = False
354+
EMAIL_VERIFICATION_ENABLED = True
354355

355356

356357
class Local(Base):
@@ -544,6 +545,8 @@ class Production(Base):
544545

545546
EMAIL_ENABLED = True
546547
FRONTEND_ORIGIN = "https://play.battlecode.org"
548+
EMAIL_VERIFICATION_REQUIRED = True
549+
EMAIL_VERIFICATION_ENABLED = True
547550

548551
LOGGING: dict[str, Any] = {
549552
**_LOGGING_COMMON,

frontend/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ VITE_THIS_URL=https://play.battlecode.org
22
VITE_BACKEND_URL=https://api.battlecode.org
33
VITE_REPLAY_URL=https://play.battlecode.org
44
GENERATE_SOURCEMAP=false
5-
VITE_EMAIL_VERIFICATION_ENABLED=false
5+
VITE_EMAIL_VERIFICATION_ENABLED=true

0 commit comments

Comments
 (0)