Skip to content

Commit

Permalink
Resolution of issues related to API key generation and Knox
Browse files Browse the repository at this point in the history
Fixed problems in the generation of API keys with Knox.
  • Loading branch information
NEZRI Ygal authored and NEZRI Ygal committed Jun 26, 2024
1 parent a58da29 commit d74ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Watcher/Watcher/accounts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def post(self, request, *args, **kwargs):
raw_key, _ = generate_api_key(user)
return Response({
"user": UserSerializer(user, context=self.get_serializer_context()).data,
"token": AuthToken.objects.create(user)[1]
"token": raw_key
})


Expand Down

0 comments on commit d74ef30

Please sign in to comment.