Skip to content

Commit

Permalink
Merge pull request #162 from HE-Arc/155-changing-http-code-when-auth-…
Browse files Browse the repository at this point in the history
…failed

change authentification error code
  • Loading branch information
maelys-buhler authored Apr 21, 2024
2 parents 6bb6b69 + 0475c84 commit 0de8e93
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 0de8e93

Please sign in to comment.