PR changes

This commit is contained in:
Joseph Schorr 2015-03-05 12:07:39 -05:00
parent 4ca5d9b04b
commit 2e840654d3
3 changed files with 11 additions and 4 deletions

View file

@ -193,10 +193,12 @@ def github_oauth_callback():
found_email = None
for user_email in get_email.json():
if not user_email['primary'] or not user_email['verified']:
break
if not user_email['verified']:
continue
found_email = user_email['email']
if user_email['primary']:
break
if found_email is None:
err = 'There is no verified e-mail address attached to the GitHub account.'