Backend Track • Beginner • 4 mins review
Fix: Send password reset email before confirming success
Tightens a password reset endpoint so the response reflects whether the reset email was actually sent.
Scenario Goal & Context
Goal: Generate a reset token, send the email, and only then return the accepted response.
Background: Support saw cases where the API returned success but the password reset email never arrived.
Changed Files (1)
- src/controllers/PasswordResetController.ts +4 -0
Ready to practice reviewing this PR?
Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.
Start Review Session