Skip to content

Commit 24aaf04

Browse files
committed
Fix tests
1 parent a4edae6 commit 24aaf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drfpasswordless/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def post(self, request, *args, **kwargs):
147147
TokenSerializer = import_string(api_settings.PASSWORDLESS_AUTH_TOKEN_SERIALIZER)
148148
token_serializer = TokenSerializer(token)
149149
# Return our key for consumption.
150-
return Response(token_serializer.validated_data, status=status.HTTP_200_OK)
150+
return Response(token_serializer.data, status=status.HTTP_200_OK)
151151
else:
152152
logger.error("Couldn't log in unknown user. Errors on serializer: {}".format(serializer.error_messages))
153153
return Response({'detail': 'Couldn\'t log you in. Try again later.'}, status=status.HTTP_400_BAD_REQUEST)

0 commit comments

Comments
 (0)