mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-09 23:52:28 +03:00
Wrong serializer and key
This commit is contained in:
parent
84aa8965d7
commit
bab9a18bcb
|
@ -52,10 +52,10 @@ class RegisterView(CreateAPIView):
|
|||
return JWTSerializer(data).data
|
||||
elif getattr(settings, 'REST_USE_KNOX', False):
|
||||
data = {
|
||||
'token': user,
|
||||
'user': user,
|
||||
'token': self.token
|
||||
}
|
||||
return KnoxTokenSerializer(data).data
|
||||
return KnoxSerializer(data).data
|
||||
else:
|
||||
return TokenSerializer(self.token).data
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user