diff --git a/dj_rest_auth/registration/views.py b/dj_rest_auth/registration/views.py index 6b6a65b..b85cf78 100644 --- a/dj_rest_auth/registration/views.py +++ b/dj_rest_auth/registration/views.py @@ -60,7 +60,6 @@ def get_response_data(self, user): return api_settings.JWT_SERIALIZER(data, context=self.get_serializer_context()).data elif self.token_model: return api_settings.TOKEN_SERIALIZER(user.auth_token, context=self.get_serializer_context()).data - return None def create(self, request, *args, **kwargs): @@ -103,7 +102,7 @@ class VerifyEmailView(APIView, ConfirmEmailView): Verifies the email associated with the provided key. Accepts the following POST parameter: key. - """ + """ permission_classes = (AllowAny,) allowed_methods = ('POST', 'OPTIONS', 'HEAD')