fix: edge hardening, rootless containers, fail-closed frontend mode
This commit is contained in:
parent
d903d0951f
commit
e82ce391f6
15 changed files with 260 additions and 31 deletions
|
|
@ -124,7 +124,9 @@ def send_magic_link(to_email: str, link: str) -> bool:
|
|||
never include tokens or session ids (see test_auth no-leak test).
|
||||
"""
|
||||
if not settings.smtp_host:
|
||||
logger.info("SMTP not configured; magic link for %s: %s", to_email, link)
|
||||
# Never log the link itself: without SMTP this fallback fires in
|
||||
# every environment, and logs are rarely as protected as mail.
|
||||
logger.info("SMTP not configured; dropping magic link for %s", to_email)
|
||||
return False
|
||||
message = _branded_mail(
|
||||
subject="Dein Login-Link für Kirche Einfach",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue