mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 13:39:45 +03:00
cleanup
This commit is contained in:
parent
d0cd73ee2b
commit
1371eb932e
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user