mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
The previous commit carried only the renames of this change, when staging the rest failed on a path the rename had already moved. This is the change itself. A reset link only ever went to the server log, for an admin to pass on. It now goes to the user's email address when SMTP is set up, the user has one and ROMM_BASE_URL is shareable, falling back to the log otherwise or when the server refuses the message. The link is built from ROMM_BASE_URL alone, never the request's Host, so a forged header can't aim it at another server; it goes out after the response, so its timing doesn't reveal whether the username exists; and a user's inbox gets at most one a minute. The SMTP sender moves from the notification channels to handler/email_handler.py now that it has a second caller. The v2 reset form says the link is on its way when the server sends email. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>