Skip to content

Commit

Permalink
Make email verification optional for dev
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericholscher committed Apr 25, 2018
1 parent fb4c6cf commit f38c011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions readthedocs/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def DATABASES(self): # noqa

DONT_HIT_DB = False

ACCOUNT_EMAIL_VERIFICATION = 'none'
SESSION_COOKIE_DOMAIN = None
CACHE_BACKEND = 'dummy://'

Expand Down

0 comments on commit f38c011

Please sign in to comment.