summaryrefslogtreecommitdiffstats
path: root/forum
diff options
context:
space:
mode:
authorhrcerqueira <hrcerqueira@gmail.com>2010-03-02 16:31:42 -0700
committerhrcerqueira <hrcerqueira@gmail.com>2010-03-02 16:31:42 -0700
commit94830a7ed9014fca3b1f29c8c02261aec280fa7c (patch)
treeedbd9648eeedc9583bd74577acab89e315950b82 /forum
parent1d35d25b8ce9f3004eebd10d88757c5921dd686c (diff)
downloadaskbot-94830a7ed9014fca3b1f29c8c02261aec280fa7c.tar.gz
askbot-94830a7ed9014fca3b1f29c8c02261aec280fa7c.tar.bz2
askbot-94830a7ed9014fca3b1f29c8c02261aec280fa7c.zip
small fix
Diffstat (limited to 'forum')
-rw-r--r--[-rwxr-xr-x]forum/views/auth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/forum/views/auth.py b/forum/views/auth.py
index 6fe184a8..d885440b 100755..100644
--- a/forum/views/auth.py
+++ b/forum/views/auth.py
@@ -107,6 +107,9 @@ def process_provider_signin(request, provider):
uassoc.save()
request.session['auth_error'] = _("These new credentials are now associated with your account.")
return HttpResponseRedirect(reverse('auth_signin'))
+ else:
+ if isinstance(assoc_key, (type, User)):
+ return login_and_forward(request, assoc_key)
try:
assoc = AuthKeyUserAssociation.objects.get(key=assoc_key)