Skip to content

Fix #29: Email validation accepts missing domain suffix#34

Draft
github-actions[bot] wants to merge 2 commits into
mainfrom
posthog-watcher/issue-29
Draft

Fix #29: Email validation accepts missing domain suffix#34
github-actions[bot] wants to merge 2 commits into
mainfrom
posthog-watcher/issue-29

Conversation

@github-actions

Copy link
Copy Markdown

Fixes #29

Generated by posthog-watcher-action using pi.

Summary

The /users/validate-email endpoint delegates to isValidEmail, whose regex only requires non-whitespace text on both sides of @, so addresses without a dotted domain suffix are treated as valid.

Triage rationale

The bug is isolated to a single validation helper and an existing test already captures the expected behavior.

Changed files

  • src/business.js

Validation

  • node -e "require('./src/business'); require('./src/app'); console.log('modules load')"

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.

Email validation accepts missing domain suffix

0 participants