auth: Remove @users.noreply.github.com from the email selection list.

Apparently GitHub changed the email address for these; we need to
update our code accordingly.

One cannot receive emails on the username@users.noreply.github.com, so
if someone tries creating an account with this email address, that
person would not be able to verify the account.
This commit is contained in:
Alexandra Ciobica
2019-08-05 15:15:56 +02:00
committed by Tim Abbott
parent 0db9afe605
commit d4ccd73ae3
2 changed files with 9 additions and 8 deletions

View File

@@ -1113,7 +1113,7 @@ class GitHubAuthBackendTest(SocialAuthBase):
# As emails ending with `noreply.github.com` are excluded from
# verified_emails, choosing it as an email should raise a `email
# not associated` warning.
account_data_dict = dict(email="hamlet@noreply.github.com", name=self.name)
account_data_dict = dict(email="hamlet@users.noreply.github.com", name=self.name)
email_data = [
dict(email="notprimary@zulip.com",
verified=True),