Skip to content

Commit

Permalink
change authentification error code
Browse files Browse the repository at this point in the history
  • Loading branch information
maelys-buhler committed Apr 21, 2024
1 parent 6bb6b69 commit 0475c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/masteriqapp/views/AuthenticationView.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def token(self, request):
'token': token.key,
'expires': expiring_date
})
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
return Response(serializer.errors, status=status.HTTP_401_UNAUTHORIZED)

def create_iq_objects_for_new_user(self, user):
categories = self.category_model.objects.all()
Expand Down

0 comments on commit 0475c84

Please sign in to comment.