From f0601381ac75a153a3a5832dcf218e8fee6e2786 Mon Sep 17 00:00:00 2001 From: Bryce Date: Sat, 25 Jul 2026 22:16:30 -0700 Subject: [PATCH] fix: restore /reset-password-submit route Commit 275820b added the sync-stats route by overwriting the first three lines of reset_password_submit (decorator, def, and the uid lookup) instead of inserting above them. That left the password reset body as unreachable code after sync_stats() returned and unregistered the URL, so the reset form POST returned 404. Co-Authored-By: Claude Opus 5 --- app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.py b/app.py index b86bc18..8fbb29c 100644 --- a/app.py +++ b/app.py @@ -232,6 +232,12 @@ def sync_stats(): return render_template("sync_stats.html", stats=stats) + +@app.route("/reset-password-submit", methods=["POST"]) +@login_required +def reset_password_submit(): + """Handle password reset form submission""" + uid = session.get("uid") new_password = request.form.get("new_password") confirm_password = request.form.get("confirm_password")