[Python-modules-commits] [python-social-auth] 43/71: use `self.setting('USE_OPENID_AS_USERNAME', False)` this will fast

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.14
in repository python-social-auth.

commit 5059b0509ed5a839711e0475b608fdd629d370a7
Author: lneoe <joe.hu.c+git at gmail.com>
Date:   Sat Oct 17 12:44:57 2015 +0800

    use `self.setting('USE_OPENID_AS_USERNAME', False)` this will fast
---
 social/backends/qq.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/backends/qq.py b/social/backends/qq.py
index 4894b60..55c41f9 100644
--- a/social/backends/qq.py
+++ b/social/backends/qq.py
@@ -31,7 +31,7 @@ class QQOAuth2(BaseOAuth2):
         this issue it's possible to use `openid` as `username` by define
         `SOCIAL_AUTH_QQ_USE_OPENID_AS_USERNAME = True`
         """
-        if self.setting('SOCIAL_AUTH_QQ_USE_OPENID_AS_USERNAME', False):
+        if self.setting('USE_OPENID_AS_USERNAME', False):
             username = response.get('openid', '')
         else:
             username = response.get('nickname', '')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list