Browse Source

Fix password resets.

master
Nick Sergeant 6 years ago
parent
commit
cfc65e49c2
2 changed files with 9 additions and 3 deletions
  1. +9
    -1
      settings.py
  2. +0
    -2
      templates/registration/password_reset_email.html

+ 9
- 1
settings.py View File

@@ -48,6 +48,15 @@ MANAGERS = ADMINS
MEDIA_ROOT = os.path.join(BASE_PATH, 'media/uploads')
MEDIA_URL = '/media/uploads/'
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
'django.contrib.auth.hashers.BCryptPasswordHasher',
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher',
)
POSTMARK_API_KEY = os.environ.get('POSTMARK_API_KEY', '')
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
RAVEN_CONFIG = {'dsn': os.environ.get('RAVEN_CONFIG_DSN', '')}
@@ -88,7 +97,6 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'django_bcrypt',
'gunicorn',
'haystack',
'markdown_deux',


+ 0
- 2
templates/registration/password_reset_email.html View File

@@ -1,3 +1 @@
Reset your Snipt password here: {{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %}

(btw, your username is "{{ user }}")

Loading…
Cancel
Save