Implement update feature that responds to HTTP PATCH requests for updates of any valid editable forum user document field(s) with the updated forum user data.
Refactored existing User controller functions to use added validation lib functionality, moved (dummy) password hash function to model.
Added an email validation.
Related Issue
Solves #22
Type of change
[x] New feature (enhancement)
How Has This Been Tested?
Multiple automated test cases for
successfully updating all editable forum user document fields
unsuccessfully updating all editable forum user document fields with valid but unmatching ID
unsuccessfully updating with invalid forum user ID
unsuccessfully updating with invalid username field
unsuccessfully updating with invalid displayName field
unsuccessfully updating with invalid email field
unsuccessfully updating with invalid password field
[x] Automated testing
Checklist:
[x] Does a similar (open or closed) pull request not already exist?
[x] Is the pull request head repository a fork repository?
[x] Is the pull request compare branch a development branch?
[x] Is the code documented, particularly in hard-to-understand areas?
[x] Does the code build without new warnings?
[x] Has testing been performed that proves changes are effective and work?
[x] Has a self- and/or peer-review of the code been performed?
[x] Does all new and existing automated testing pass?
[x] Is the person responsible for the repository assigned to the pull request?
[x] Is the pull request linked to a project?
[x] Is the pull request linked to a milestone?
For more information, refer to the Contributing Guidelines and Code of Conduct links at the bottom of this page.
Description
Implement update feature that responds to HTTP PATCH requests for updates of any valid editable forum user document field(s) with the updated forum user data.
Refactored existing User controller functions to use added validation lib functionality, moved (dummy) password hash function to model.
Added an email validation.
Related Issue
Solves #22
Type of change
How Has This Been Tested?
Multiple automated test cases for
Checklist:
For more information, refer to the Contributing Guidelines and Code of Conduct links at the bottom of this page.