From 1371eb932e415f6326fd0eb3a4b6f4c15e690c98 Mon Sep 17 00:00:00 2001 From: Philippe Luickx Date: Thu, 30 Apr 2015 13:25:29 +0300 Subject: [PATCH] cleanup --- rest_auth/registration/views.py | 1 - rest_auth/views.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/rest_auth/registration/views.py b/rest_auth/registration/views.py index cfb6f2c..3dada33 100644 --- a/rest_auth/registration/views.py +++ b/rest_auth/registration/views.py @@ -82,7 +82,6 @@ class Register(APIView, SignupView): class VerifyEmail(APIView, ConfirmEmailView): permission_classes = (AllowAny,) - authentication_classes = (EverybodyCanAuthentication,) allowed_methods = ('POST', 'OPTIONS', 'HEAD') def get(self, *args, **kwargs): diff --git a/rest_auth/views.py b/rest_auth/views.py index 437a696..31cccd4 100644 --- a/rest_auth/views.py +++ b/rest_auth/views.py @@ -86,7 +86,6 @@ class Logout(APIView): Accepts/Returns nothing. """ permission_classes = (AllowAny,) - authentication_classes = (EverybodyCanAuthentication,) def post(self, request): try: @@ -115,7 +114,6 @@ class UserDetails(RetrieveUpdateAPIView): """ serializer_class = UserDetailsSerializer permission_classes = (IsAuthenticated,) - authentication_classes = (EverybodyCanAuthentication,) def get_object(self): return self.request.user @@ -132,7 +130,6 @@ class PasswordReset(GenericAPIView): serializer_class = PasswordResetSerializer permission_classes = (AllowAny,) - authentication_classes = (EverybodyCanAuthentication,) def post(self, request, *args, **kwargs): # Create a serializer with request.DATA @@ -162,7 +159,6 @@ class PasswordResetConfirm(GenericAPIView): serializer_class = PasswordResetConfirmSerializer permission_classes = (AllowAny,) - authentication_classes = (EverybodyCanAuthentication,) def post(self, request): serializer = self.get_serializer(data=request.DATA) @@ -188,7 +184,6 @@ class PasswordChange(GenericAPIView): serializer_class = PasswordChangeSerializer permission_classes = (IsAuthenticated,) - authentication_classes = (EverybodyCanAuthentication,) def post(self, request): serializer = self.get_serializer(data=request.DATA)