1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

Import NK15 passwords

This commit is contained in:
Yohann D'ANELLO
2020-02-20 10:26:00 +01:00
parent 71a88e84f7
commit e28b19b353
2 changed files with 33 additions and 0 deletions

View File

@ -110,6 +110,12 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
# Use our custom hasher in order to import NK15 passwords
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'member.hashers.CustomNK15Hasher',
]
# Django Guardian object permissions
AUTHENTICATION_BACKENDS = (