From 9bfb161516896947fb78e4adff73755078341307 Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Sat, 25 Mar 2017 15:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Doauth=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=87=8D=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oauth/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth/views.py b/oauth/views.py index 6089b7d..ebaff64 100644 --- a/oauth/views.py +++ b/oauth/views.py @@ -54,8 +54,8 @@ def authorize(request): if not email: # todo # 未避免用户名重复,暂时使用oauth用户名+openid这种方式来创建用户 - author = get_user_model().objects.get_or_create(username=user.nikename + '_' + str(user.openid))[0] - user.author = author + #author = get_user_model().objects.get_or_create(username=user.nikename + '_' + str(user.openid))[0] + #user.author = author user.save() url = reverse('oauth:require_email', kwargs=