Pull Request for [BACKEND] Implement Backend Endpoint to Update User Email#22
Merged
jaykayudo merged 5 commits intoTrajectfi:mainfrom Jun 7, 2025
Merged
Pull Request for [BACKEND] Implement Backend Endpoint to Update User Email#22jaykayudo merged 5 commits intoTrajectfi:mainfrom
jaykayudo merged 5 commits intoTrajectfi:mainfrom
Conversation
- Add email validation and normalization - Implement authenticated user email update logic - Include proper error handling for invalid formats
- Add POST /account/update-email endpoint - Enforce authentication with IsAuthenticated permission - Return appropriate HTTP status codes (200/400/401) - Include success response with updated email
- Add /account/update-email/ route mapping - Wire UpdateEmailAPIView to URL configuration
- Test successful email update workflow - Test email format validation with invalid inputs - Test unauthorized access protection - Test missing field validation - Test email normalization to lowercase - Test invalid token handling - Achieve 100% code coverage for UpdateEmailAPIView
Contributor
|
Hello @clintjeff2 |
Contributor
Author
Could you please clarify what you mean by “format the code”? Are you referring to code style or a specific section of the code that needs formatting? |
Contributor
|
Run |
Contributor
Author
|
Oh, I see. Will be done in an instant |
Contributor
Author
|
Formated!! |
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.
Description
Implements a secure backend endpoint that allows authenticated users to update their email address as part of the user profile management system. This includes input validation, user identity resolution via Knox token authentication, and safe update handling.
Related Issue
Fixes #21
Type of Change
How Has This Been Tested?
Test cases included: