Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backend/siarnaq/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading