Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user: disallow temp email & better gate logs #1956

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gioelecerati
Copy link
Member

What does this pull request do? Explain your changes. (required)

Specific updates (required)

How did you test each of these updates (required)

Does this pull request close any open issues?

Screenshots (optional)

Checklist

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@gioelecerati gioelecerati requested a review from a team as a code owner November 3, 2023 18:47
Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2023 2:51pm

Comment on lines +321 to +325
if (isFakeEmail(email)) {
res.status(422);
res.json({ errors: ["invalid email"] });
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actuallyyyy we already have an even fancier email validation done with the Sendgrid API here: https://github.com/livepeer/livepeer-com/blob/142c9e588e964f014c80248ba004db153387d6da/packages/api/src/controllers/user.ts#L402

WDYT of making that non-background instead (or as well)? Meaning we return this error when Sendgrid says the email is fake as well. You can check the logs from that validation function to see some data on previous validations. The times I checked it seemed pretty good but we didn't go forward with enabling it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants