typo
This commit is contained in:
parent
c589910b11
commit
fab154a652
@ -32,7 +32,7 @@ class UserLoginView(APIView):
|
||||
if user is not None:
|
||||
login(request, user)
|
||||
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):
|
||||
def post(self, request):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user