Skip to content

Commit

Permalink
feat: default empty authentication_class for login and retistration
Browse files Browse the repository at this point in the history
  • Loading branch information
atmosuwiryo committed Jun 10, 2024
1 parent c1082d0 commit b6038fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit b6038fa

Please sign in to comment.