Enable logout for now so client tests pass.

This commit is contained in:
Tom Hacohen 2020-05-15 13:03:04 +03:00
parent 644539bd68
commit bced00dc8a

View File

@ -419,7 +419,7 @@ class AuthenticationViewSet(viewsets.ViewSet):
@action_decorator(detail=False, methods=['POST'])
def logout(self, request):
# FIXME: expire the token - we need better token handling - using knox? Something else?
return Response({}, status=status.HTTP_400_BAD_REQUEST)
return Response({}, status=status.HTTP_200_OK)
class TestAuthenticationViewSet(viewsets.ViewSet):