From a0cddee08c8bb0129dc537357de575299cfc73c0 Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 6 Jul 2016 23:03:13 +0200 Subject: [PATCH] Switch default password hasher to custom SSHA --- re2o/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/re2o/settings.py b/re2o/settings.py index 51604a9d..408ec0a0 100644 --- a/re2o/settings.py +++ b/re2o/settings.py @@ -20,6 +20,15 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ + +# Auth definition + +PASSWORD_HASHERS = ( + 're2o.login.SSHAPasswordHasher', + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', +) + + # Application definition INSTALLED_APPS = (