omab/django-social-auth — pull request #363 by oracal (2012-06-08 19:42:43+00:00)
Title: Bitbucket multiple email bug.

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.