Skip to content

Commit

Permalink
Merge bf0df07 into afb3a45
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan690 committed Feb 25, 2019
2 parents afb3a45 + bf0df07 commit 8d6bd74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions authors/apps/authentication/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
from builtins import BaseException

from datetime import datetime, timedelta

import jwt
Expand Down Expand Up @@ -278,5 +280,7 @@ def create(self, request, *args, **kwargs):
serializer = UserSerializer(user)
serializer_data = serializer.data
serializer_data["token"] = get_jwt_token(user)
user.is_verified = True
user.save()
return Response(serializer_data, status=status.HTTP_200_OK)

0 comments on commit 8d6bd74

Please sign in to comment.