typo
This commit is contained in:
parent
c589910b11
commit
fab154a652
@ -32,7 +32,7 @@ class UserLoginView(APIView):
|
|||||||
if user is not None:
|
if user is not None:
|
||||||
login(request, user)
|
login(request, user)
|
||||||
return Response({"message": "Login successful"}, status=status.HTTP_200_OK)
|
return Response({"message": "Login successful"}, status=status.HTTP_200_OK)
|
||||||
return Response({error}: "Invalid credentials", status=status.HTTP_401_UNAUTHORIZED)
|
return Response({error: "Invalid credentials"}, status=status.HTTP_401_UNAUTHORIZED)
|
||||||
|
|
||||||
class UserLogoutView(APIView):
|
class UserLogoutView(APIView):
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user