Skip to content

Commit

Permalink
Feature/#64
Browse files Browse the repository at this point in the history
  • Loading branch information
mieseung committed Jan 8, 2021
1 parent 31a8fdd commit 14bafeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clone_linkedin/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def create(self, request):

login(request, user, backend="django.contrib.auth.backends.ModelBackend")

userprofile, is_userprofile = UserProfile.objects.get_or_create(user=user)
data = serializer.data
data['token'] = user.auth_token.key
return Response(data, status=status.HTTP_201_CREATED)
Expand Down

0 comments on commit 14bafeb

Please sign in to comment.