full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

♻️ Simplify reset password logic by removing duplicate code

Open youneshenniwrites opened this issue 10 months ago • 0 comments

Description

This pull request refactors the reset_password API endpoint to delegate password hashing and database update logic to the existing crud.update_user method.

The original implementation in reset_password contained redundant code that is already handled in crud.py, resulting in unnecessary duplication.

This refactor aims to keep the password update process and database queries in one place (crud.py), making it easier to manage and update if needed.

youneshenniwrites avatar Dec 03 '24 14:12 youneshenniwrites