From f38c011be182761fb6b9ea50bf223bf420ac197c Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Wed, 25 Apr 2018 16:44:59 -0700 Subject: [PATCH] Make email verification optional for dev This changes our default to allowing users to login w/out verifying their pw, but still sending the password to them via email. I think this is better for dev, so folks don't need to verify a fake email when just playing around locally. --- readthedocs/settings/base.py | 2 +- readthedocs/settings/dev.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index ed1b6b4fed3..f9e7305c010 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -270,7 +270,7 @@ def USE_PROMOS(self): # noqa # All auth ACCOUNT_ADAPTER = 'readthedocs.core.adapters.AccountAdapter' ACCOUNT_EMAIL_REQUIRED = True - ACCOUNT_EMAIL_VERIFICATION = 'mandatory' + ACCOUNT_EMAIL_VERIFICATION = 'optional' ACCOUNT_AUTHENTICATION_METHOD = 'username_email' ACCOUNT_ACTIVATION_DAYS = 7 SOCIALACCOUNT_EMAIL_VERIFICATION = 'none' diff --git a/readthedocs/settings/dev.py b/readthedocs/settings/dev.py index 24c3e208508..6fd004979b1 100644 --- a/readthedocs/settings/dev.py +++ b/readthedocs/settings/dev.py @@ -23,6 +23,7 @@ def DATABASES(self): # noqa DONT_HIT_DB = False + ACCOUNT_EMAIL_VERIFICATION = 'none' SESSION_COOKIE_DOMAIN = None CACHE_BACKEND = 'dummy://'