mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
some settings in config
This commit is contained in:
parent
b281241607
commit
0a8401da1d
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user