2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 14:37:07 +00:00

password reset via encrypted token by email

This commit is contained in:
2025-01-22 23:03:01 +00:00
parent a5341c4eb2
commit 173ee2348f
5 changed files with 53 additions and 22 deletions

View File

@@ -86,6 +86,7 @@ SMART_APPEND_SLASH = True # not eorking as middleware different after Dj2.0
ROOT_URLCONF = "troggle.urls"
LOGOUT_REDIRECT_URL = "/statistics" # see troggle/core/views/auth.py
LOGIN_REDIRECT_URL = "/controlpanel" # see troggle/core/views/auth.py
PASSWORD_RESET_TIMEOUT = 3*60*60 # password reset sends an email. The response is valid for 3 hours
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
@@ -97,7 +98,7 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" # from Django 3.2
INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth", # includes the url redirections for login, logout
"django.contrib.auth", # includes the url redirections for login, logout, password_reset etc.
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",