🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Security: notify the old address on the change-email route too (AUTH-09)
Omega (QA)e042f99f85ca
diff --git a/backend/auth_routes.py b/backend/auth_routes.pyindex ee0ca22..91628f1 100644--- a/backend/auth_routes.py+++ b/backend/auth_routes.py@@ -1481,6 +1481,11 @@ def request_email_change():cur.execute("UPDATE users SET email = %s WHERE id = %s", (new_email, current_user_id))conn.commit()+ # AUTH-09: tell the old address, best effort, like the profile+ # flow. The helper never raises, so a mail failure cannot fail+ # the change.+ send_email_change_notice(current_email, new_email)+return jsonify({'message': 'Email address updated successfully.'}), 200except Exception as e: