hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 136 forks source link

[FIX] Change password update endpoint from PATCH to PUT #923

Closed johnson-oragui closed 3 weeks ago

johnson-oragui commented 3 weeks ago

Describe the bug This fix is intended to change the password change/update method from PATCH to PUT, and modify the endpoint from PATCH /api/v1/auth/password-change to PUT /api/v1/auth/password, and add a confirm_new_password field.

Expected behavior Since the endpoint is expected to be used in a complete change of the user password, it should be a PUT, and not a PATCH.

Screenshots If applicable, add screenshots to help explain your problem.

PYTHON DOCS fix anchor password

C# DOCS fix c# password

Additional context The methods should align with C# in order for correct usage from the consumers(frontend) of the endpoint.