-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
create() takes 1 positional argument but 3 were given
home/aiyom/PycharmProjects/recommerce-back/market/venv/lib/python3.9/site-packages/knox/views.py, line 65, in post
return Response(
{"error": "Maximum amount of tokens allowed per user exceeded."},
status=status.HTTP_403_FORBIDDEN
)
token_ttl = self.get_token_ttl()
print(token_ttl)
print(request.user)
instance, token = AuthToken.objects.create(request.user, token_ttl) …
print(instance, token)
user_logged_in.send(sender=request.user.class,
request=request, user=request.user)
data = self.get_post_response_data(request, token, instance)
return Response(data)
Metadata
Metadata
Assignees
Labels
No labels