Skip to content

Mahitha - 🔥 fix(userProfile): update email validation in controller#2251

Merged
one-community merged 1 commit into
developmentfrom
feature/volunteer-fix-email-update
Jun 19, 2026
Merged

Mahitha - 🔥 fix(userProfile): update email validation in controller#2251
one-community merged 1 commit into
developmentfrom
feature/volunteer-fix-email-update

Conversation

@Mahitha-pasupuleti

@Mahitha-pasupuleti Mahitha-pasupuleti commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Description

Screenshot 2026-06-16 at 10 16 08 PM

This PR fixes an issue in the user profile email update flow where the email update logic was not correctly handled in the backend controller.

Fixes # email update validation inconsistency in user profile update API.

Related PRS (if any):

This PR is a standalone backend fix. No dependent frontend PR required.

Main changes explained:

  • Update file src/controllers/userProfileController.js for including new pattern
  • Fixed email validation/update logic to ensure proper handling of updated email values
  • Ensured consistent payload handling during user profile update request

How to test:

  1. check into current branch: git checkout feature/volunteer-fix-email-update
  2. do npm install and npm run dev to run this PR locally
  3. Log in as a volunteer/user
  4. Go to profile update section
  5. Update email and save changes
  6. Verify function:
    • Email updates successfully
    • No validation errors
    • Response reflects updated email correctly

Screenshots or videos of #[changes:]

Screen.Recording.2026-06-17.at.10.49.09.AM.mov

Note:

This is a small backend fix focused on email update behavior in the user profile controller. Please verify API response consistency and validation behavior during review.

Important: After changing your email address, you may encounter a "User Not Found" error if you continue using the old email, as it will no longer exist in the database. Please log out and log in again using the updated email address.

@one-community one-community changed the title fix(userProfile): update email validation in controller Mahitha - fix(userProfile): update email validation in controller Jun 18, 2026
@one-community one-community changed the title Mahitha - fix(userProfile): update email validation in controller Mahitha - 🔥 fix(userProfile): update email validation in controller Jun 19, 2026
@one-community one-community merged commit 916578a into development Jun 19, 2026
2 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants