Changeset - be179e8f6493
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2019-09-30 15:20:24
brettcsmith@brettcsmith.org
settings: Make ACCOUNT_EMAIL_CONFIRMATION_REQUIRED configurable.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -301,14 +301,16 @@ EMAIL_USE_SSL = bool(int(os.environ.get("DJANGO_EMAIL_USE_SSL", "0")))
 
ACCOUNT_LOGIN_URL = "nbpy_login"
 
LOGIN_URL = "nbpy_login"
 

	
 
# We need to explicitly switch on signups.
 
ACCOUNT_OPEN_SIGNUP = bool(int(os.environ.get("DJANGO_ACCOUNT_OPEN_SIGNUP", "0")))
 
ACCOUNT_EMAIL_UNIQUE = True
 
#ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False if DEBUG else True
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = bool(int(os.environ.get(
 
    'DJANGO_ACCOUNT_CONFIRM_EMAIL',
 
    False if DEBUG else True,
 
)))
 
ACCOUNT_LOGIN_REDIRECT_URL = "dashboard"
 
ACCOUNT_LOGOUT_REDIRECT_URL = "home"
 
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
 
ACCOUNT_USE_AUTH_AUTHENTICATE = True
 
ACCOUNT_HOOKSET =  "pinaxcon.account_hooks.BetterAccountHookSet"
 

	
0 comments (0 inline, 0 general)