Skip to content

fix: normalize email inputs to lowercase in signup, login, and googleLogin (fixes #982)#1446

Open
SamraddhiJoshi wants to merge 1 commit into
aryandas2911:mainfrom
SamraddhiJoshi:fix/issue-982-email-normalization
Open

fix: normalize email inputs to lowercase in signup, login, and googleLogin (fixes #982)#1446
SamraddhiJoshi wants to merge 1 commit into
aryandas2911:mainfrom
SamraddhiJoshi:fix/issue-982-email-normalization

Conversation

@SamraddhiJoshi

Copy link
Copy Markdown

Description

This PR resolves issue #982:

  • Normalizes email inputs by trimming whitespace and converting them to lowercase during signup, login, and googleLogin processes inside authController.js.
  • This ensures case-insensitive database lookups and prevents duplicate accounts with different casings.

Tests and Verification

  • Ran backend unit tests successfully.
  • Verified ESLint rules pass without warnings.

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