WIP: sending method as an explicit choice, kept in payload-kv (superseded: the choice moves to a stored field)

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 22:30:03 +01:00
co-authored by Claude Fable 5.2
parent 68a2555277
commit c6841a1674
34 changed files with 740 additions and 96 deletions
+3 -3
View File
@@ -1063,9 +1063,9 @@ not enough on its own: an admin session could point `smtpHost` / `smtpPort` at a
"Send test e-mail", and read the password off the connection. So a save **through access control** (the panel,
REST, GraphQL) that changes `smtpHost`, `smtpPort` or `smtpUser` while a password is stored must send the
password again — or remove it (`'[[clear]]'`, "Remove the stored value") for a server without one. **Whatever
the transport says:** "Microsoft Graph" in the panel does not mean Graph sends — the mail adapter falls back to
SMTP when Graph is not configured, and for attachments Graph cannot take. A change of `emailTransport` alone
asks for nothing. Values are compared exactly (`587` and `'587'` are the same; another letter case or a space
the sending method says:** with "Microsoft Graph" chosen the SMTP server is still used for attachments Graph cannot
take (and, on a site nobody has chosen a method for, when Graph is not configured). A change of the sending method
alone asks for nothing. Values are compared exactly (`587` and `'587'` are the same; another letter case or a space
is a change), and a value never saved — or a `NULL` in a SQL row — counts as the field's default, so saving
the form unchanged asks for nothing. Server code — a seed, a script with the Local API and access control off
— is not asked. `iapl({ secrets: { reenterOnChange: false } })` = the stored password follows the new