mouneyrac/moodle-auth_googleoauth2 — pull request #52 by kmiksi (2014-03-19 18:17:52+00:00)
Title: invalid first email on github

In a test case: an account with multiple emails have the first return item as invalid.
In GitHub you can add invalid emails (like test@github), so this broke the validation if a valid email is not the first on list.
Previous code use only first email, them check it and fail (on this test case).