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

add email token normalization #3197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cowtoolz
Copy link

@cowtoolz cowtoolz commented Dec 6, 2024

This pull request adds basic email token normalization. Basically, it just adds a tiny string normalization function normalizeEmailToken to the email token verification pipeline

I am suggesting this change because I encountered the following UX problem: I mistyped my token when verifying my email address by placing the hyphen in the incorrect position. Then, just out of curiosity, I just removed the hyphen all together, which didn't work either. This is obviously an insanely trivial problem, but a nice UX thing we have come to expect these days; my commitment to the advancement of human laziness is unwavering.

use regex to normalize email tokens

use token normalization function when generating tokens
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.

1 participant