Files
romm/backend/tests/handler/auth
zurdi 6e1f2ddf45 feat: email password reset links when SMTP is set up (the rest)
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>
2026-09-23 17:37:59 +02:00
..
2026-03-10 09:23:12 -04:00