]> git.parisson.com Git - django-social-auth.git/commit
Found a bug where if a bitbucket user has multiple email addresses associated with...
authorThomas Whitton <oracal@oracal-EP45-UD3LR.(none)>
Fri, 8 Jun 2012 19:26:56 +0000 (20:26 +0100)
committerThomas Whitton <oracal@oracal-EP45-UD3LR.(none)>
Fri, 8 Jun 2012 19:26:56 +0000 (20:26 +0100)
commit645ab2aeb2ab5b3857fd9c1abde72e59424e3d80
tree778d976033bbaf8462172c8f027d85ee6d49b91c
parent727b64e8350e7af4f13a8da2a671c3e5bfd3c00a
Found a bug where if a bitbucket user has multiple email addresses associated with their bitbucket account, it would currently take the top one
which was not necessarily their active primary address.

Now takes their active primary email address and if one can't be found (I assume this is impossible but thought I would put it in just in case)
will retrieve the first returned active email address.
social_auth/backends/contrib/bitbucket.py