some settings in config

This commit is contained in:
Matthias 2021-09-07 23:07:23 +02:00
parent b281241607
commit 0a8401da1d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 12 additions and 0 deletions

View File

@ -662,6 +662,10 @@ for app in SOCIAL_BACKENDS:
INSTALLED_APPS.append(app)
# settings for allauth
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = get_setting('INVENTREE_LOGIN_CONFIRM_DAYS', CONFIG.get('login_confirm_days', 3))
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = get_setting('INVENTREE_LOGIN_ATTEMPTS', CONFIG.get('login_attempts', 5))
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
# override forms / adapters

View File

@ -141,6 +141,14 @@ static_root: '/home/inventree/data/static'
# - git
# - ssh
# Login configuration
# How long do confirmation mail last?
# Use environment variable INVENTREE_LOGIN_CONFIRM_DAYS
#login_confirm_days: 3
# How many wrong login attempts are permitted?
# Use environment variable INVENTREE_LOGIN_ATTEMPTS
#login_attempts: 5
# Permit custom authentication backends
#authentication_backends:
# - 'django.contrib.auth.backends.ModelBackend'