allauth default login protocol setting (#3975)

This commit is contained in:
geniesis 2022-11-21 19:41:22 +11:00 committed by GitHub
parent 5816441b2d
commit 10ae170d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -744,6 +744,7 @@ SOCIALACCOUNT_STORE_TOKENS = True
# settings for allauth
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', 'login_confirm_days', 3, typecast=int)
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = get_setting('INVENTREE_LOGIN_ATTEMPTS', 'login_attempts', 5, typecast=int)
ACCOUNT_DEFAULT_HTTP_PROTOCOL = get_setting('INVENTREE_LOGIN_DEFAULT_HTTP_PROTOCOL', 'login_default_protocol', 'http')
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
ACCOUNT_PREVENT_ENUMERATION = True

View File

@ -161,6 +161,7 @@ background:
# Login configuration
login_confirm_days: 3
login_attempts: 5
login_default_protocol: http
# Remote / proxy login
# These settings can introduce security problems if configured incorrectly. Please read