-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
GSSoC'25Part of GSSoC'25 programPart of GSSoC'25 programbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestlevel 1Beginner/easyBeginner/easy
Description
Description:
The register and login controllers currently work fine, but they contain repeated logic such as:
- Input normalization (trimming and lowercasing strings).
- Building the user response object.
- Handling repeated validation patterns.
This repetition makes the code harder to maintain and more error-prone when future changes are needed (e.g., updating the response structure).
Expected improvement:
- Reduce duplication in the auth controller.
- Improve readability and maintainability.
- Keep functionality, validation, and API responses exactly the same.
Metadata
Metadata
Assignees
Labels
GSSoC'25Part of GSSoC'25 programPart of GSSoC'25 programbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestlevel 1Beginner/easyBeginner/easy