Skip to content

Commit

Permalink
Merge pull request #131 from thalesgroup-cert/v2
Browse files Browse the repository at this point in the history
Resolution of issues related to API key generation and Knox
  • Loading branch information
ygalnezri authored Jun 26, 2024
2 parents 36bde0c + d74ef30 commit 830b878
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 830b878

Please sign in to comment.