修复oauth用户重复bug

sh_branch
liangliangyy 9 years ago
parent c8567d0a1a
commit 41ebc1ce0b

@ -41,7 +41,7 @@ def authorize(request):
if email:
author = None
try:
author = get_user_model().objects.get(email=email)
author = get_user_model().objects.get(id=user.author_id)
except ObjectDoesNotExist:
pass
if not author:

Loading…
Cancel
Save