[Python-modules-commits] [python-social-auth] 247/322: Add email to default list of protected userfields (popular demand)

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


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

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

commit 50aafbff1a196d3ab36fa6a7e2594aee29fed4d3
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Mon Apr 13 00:28:38 2015 -0300

    Add email to default list of protected userfields (popular demand)
---
 social/pipeline/user.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/pipeline/user.py b/social/pipeline/user.py
index 1e9971c..7e173a8 100644
--- a/social/pipeline/user.py
+++ b/social/pipeline/user.py
@@ -73,7 +73,7 @@ def user_details(strategy, details, user=None, *args, **kwargs):
     """Update user details using data from provider."""
     if user:
         changed = False  # flag to track changes
-        protected = ('username', 'id', 'pk') + \
+        protected = ('username', 'id', 'pk', 'email') + \
                     tuple(strategy.setting('PROTECTED_USER_FIELDS', []))
 
         # Update user model attributes with the new data sent by the current

-- 
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