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

Optimize disposable email domain validation using SISMEMBER instead of SMEMBERS #1312

Merged

Conversation

unrenamed
Copy link
Contributor

This resolves #1304

Use Redis' `SISMEMBER` command, which provides constant-time O(1) lookups for Redis sets, offering a substantial performance boost over `SMEMBERS`.

Also move the disposable email validation to `sendOtpAction` so we don't send the OTP to a disposable email address. By doing this, we can stop bad actors at the initial registration step.
Copy link

vercel bot commented Oct 3, 2024

@unrenamed is attempting to deploy a commit to the Dub Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Oct 3, 2024

CLA assistant check
All committers have signed the CLA.

@steven-tey
Copy link
Collaborator

Beautiful, thank you so much!

@steven-tey steven-tey merged commit c02451d into dubinc:main Oct 3, 2024
4 of 5 checks passed
Copy link

oss-gg bot commented Oct 3, 2024

Awarding unrenamed: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/unrenamed

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.

Optimize disposable email domain validation using SISMEMBER instead of SMEMBERS
4 participants