[Python-modules-commits] [python-social-auth] 38/71: Update vk.py
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:14:27 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 48bd44587e74121c58b3cdb20b7678fb600001a9
Author: Sergey Trofimov <truetug at gmail.com>
Date: Wed Oct 7 18:58:57 2015 +0300
Update vk.py
Fix for modern VK API (5.34 tested) where no uid param in response, and fallback to get_user_id from BaseAuth class which gets uid by self.ID_KEY
---
social/backends/vk.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/social/backends/vk.py b/social/backends/vk.py
index da1e19e..db388d2 100644
--- a/social/backends/vk.py
+++ b/social/backends/vk.py
@@ -85,9 +85,6 @@ class VKOAuth2(BaseOAuth2):
('expires_in', 'expires')
]
- def get_user_id(self, details, response):
- return response['uid']
-
def get_user_details(self, response):
"""Return user details from VK.com account"""
fullname, first_name, last_name = self.get_user_names(
--
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