Browse Source

Fix judging request.user valid on UserToken API (#476)

pull/480/head
Caijun 8 years ago committed by 老广
parent
commit
cf07a6ebb7
  1. 2
      apps/users/api.py

2
apps/users/api.py

@ -85,7 +85,7 @@ class UserToken(APIView):
permission_classes = (AllowAny,)
def post(self, request):
if not request.user:
if not request.user.is_authenticated:
username = request.data.get('username', '')
email = request.data.get('email', '')
password = request.data.get('password', '')

Loading…
Cancel
Save