Fix password resets.
parent
f6504032f3
commit
cfc65e49c2
10
settings.py
10
settings.py
|
@ -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',
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
Reset your Snipt password here: {{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %}
|
||||
|
||||
(btw, your username is "{{ user }}")
|
||||
|
|
Loading…
Reference in New Issue