settings: Make ACCOUNT_EMAIL_CONFIRMATION_REQUIRED configurable.

This commit is contained in:
Brett Smith 2018-10-10 11:35:42 -04:00
parent f60f3e4ff2
commit be179e8f64

View file

@ -304,8 +304,10 @@ LOGIN_URL = "nbpy_login"
# We need to explicitly switch on signups. # We need to explicitly switch on signups.
ACCOUNT_OPEN_SIGNUP = bool(int(os.environ.get("DJANGO_ACCOUNT_OPEN_SIGNUP", "0"))) ACCOUNT_OPEN_SIGNUP = bool(int(os.environ.get("DJANGO_ACCOUNT_OPEN_SIGNUP", "0")))
ACCOUNT_EMAIL_UNIQUE = True ACCOUNT_EMAIL_UNIQUE = True
#ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False if DEBUG else True ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = bool(int(os.environ.get(
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False 'DJANGO_ACCOUNT_CONFIRM_EMAIL',
False if DEBUG else True,
)))
ACCOUNT_LOGIN_REDIRECT_URL = "dashboard" ACCOUNT_LOGIN_REDIRECT_URL = "dashboard"
ACCOUNT_LOGOUT_REDIRECT_URL = "home" ACCOUNT_LOGOUT_REDIRECT_URL = "home"
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2 ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2