fix: add honest password reset UX when SMTP is offline (Fixes #239) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #280
Conversation
…-bounties#239) When SMTP is offline or email sending fails, the password reset flow now returns a truthful response instead of claiming 'email sent'. Backend: - Check the email send result and return email_sent field in the response - Use SMTPReady() to determine email capability independently of user existence - Same response for both existing and non-existing users (security) - No token/reset secrets in client responses Frontend: - Fix API path: /api/auth/password-reset/request -> /api/auth/password-reset - Remove unused reset_url field from request body - Check response.email_sent to show honest fallback message when SMTP is offline - Show clear error message with instructions to try again later or contact support
|
Findings A minor improvement would be to add dedicated unit tests for the new Bounty Readiness
Tests/Evidence Needed Suggested Labels MergeOS automated readiness signals:
|
Verification Report — PR #280Verifier: @zhangzhen9434 (independent QA, issue #64) Code review (verdict: ✅ CORRECT against issue #239 acceptance criteria)
Diff: 3 files, +27/-7 lines. Files: CI status (verdict:
|
Verification Report — PR #280Target: #280 Checks
Manual Review
Evidence Status: PROVIDEDLabels confirm evidence: provided and star: verified. Recommendation: APPROVEThe fix is targeted, evidence is present, no CI failures. Ready for maintainer review. QA Verification — #64 |
|
/claim |
Summary
Fixes #239 — When SMTP is offline or email sending fails, the password reset flow now returns a truthful response instead of claiming "email sent".
Backend Changes
Frontend Changes
Testing