0 1 0
Brett Smith - 14 months 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:
↑ Collapse Diff ↑
...
 
@@ -304,8 +304,10 @@ LOGIN_URL = "nbpy_login"
304 304
 
# We need to explicitly switch on signups.
305 305
 
ACCOUNT_OPEN_SIGNUP = bool(int(os.environ.get("DJANGO_ACCOUNT_OPEN_SIGNUP", "0")))
306 306
 
ACCOUNT_EMAIL_UNIQUE = True
307
 
#ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False if DEBUG else True
308
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = False
307
 
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = bool(int(os.environ.get(
308
 
    'DJANGO_ACCOUNT_CONFIRM_EMAIL',
309
 
    False if DEBUG else True,
310
 
)))
309 311
 
ACCOUNT_LOGIN_REDIRECT_URL = "dashboard"
310 312
 
ACCOUNT_LOGOUT_REDIRECT_URL = "home"
311 313
 
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
0 comments (0 inline, 0 general)