See #187: API logic for password reset

This commit is contained in:
Eliot Berriot 2018-05-06 11:30:41 +02:00
parent 929b50183a
commit 22f0b1a2d8
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 41 additions and 7 deletions

View file

@ -391,6 +391,11 @@ REST_FRAMEWORK = {
'django_filters.rest_framework.DjangoFilterBackend',
)
}
REST_AUTH_SERIALIZERS = {
'PASSWORD_RESET_SERIALIZER': 'funkwhale_api.users.serializers.PasswordResetSerializer' # noqa
}
REST_SESSION_LOGIN = False
REST_USE_JWT = True
ATOMIC_REQUESTS = False
USE_X_FORWARDED_HOST = True