fix(sign-up): implement email notification for existing accounts during signup#5244
Merged
victorvhs017 merged 1 commit intomainfrom Jan 23, 2026
Merged
fix(sign-up): implement email notification for existing accounts during signup#5244victorvhs017 merged 1 commit intomainfrom
victorvhs017 merged 1 commit intomainfrom
Conversation
- Updated authSignupService to send an informational email instead of throwing an error for existing accounts, addressing user enumeration vulnerabilities. - Added new SignupExistingAccountTemplate for the email notification. - Updated SMTP service to include the new email template. - Enhanced frontend to provide a link for users to log in if they already have an account.
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
Greptile SummaryThis PR addresses a user enumeration vulnerability in the sign-up flow. Previously, attempting to sign up with an existing email returned an error, allowing attackers to enumerate valid user accounts. The fix sends users to the same verification code screen regardless of whether their account exists, with a different email sent for existing accounts. Key Changes:
Issues Found:
Verification Needed:
Confidence Score: 3/5
Important Files Changed
|
scott-ray-wilson
approved these changes
Jan 23, 2026
Contributor
scott-ray-wilson
left a comment
There was a problem hiding this comment.
LGTM, verified with both an existing user and new user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The sign-up page is vulnerable to user enumeration. It returns an error if the user already exists and redirects to the validation code screen if they don’t.
To fix this, we send the users to the same screen, but we send a different email if the user already exists.
Screenshots
This is the new email:

This is the updated validation code page:

Steps to verify the change
Try to sign-up with an existing user and with a new user.
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).