Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dj_rest_auth/registration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
class RegisterView(CreateAPIView):
serializer_class = api_settings.REGISTER_SERIALIZER
permission_classes = api_settings.REGISTER_PERMISSION_CLASSES
authentication_classes = ()
token_model = TokenModel
throttle_scope = 'dj_rest_auth'

Expand Down
1 change: 1 addition & 0 deletions dj_rest_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class LoginView(GenericAPIView):
Return the REST Framework Token Object's key.
"""
permission_classes = (AllowAny,)
authentication_classes = ()
serializer_class = api_settings.LOGIN_SERIALIZER
throttle_scope = 'dj_rest_auth'

Expand Down