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:
co-authored by
Claude Fable 5.2
parent
68a2555277
commit
c6841a1674
+22
-1
@@ -9,7 +9,7 @@ versions at once, go through every "Requires project changes" section in order,
|
||||
version you have. A new release = a new section at the top; we remove the oldest ones only
|
||||
once there are more than 20.
|
||||
|
||||
## 1.17.1 — security fixes from the IAWL review; the panel's sign-in look
|
||||
## 1.17.1 — security fixes from the IAWL review; the panel's sign-in look; the sending method is chosen
|
||||
|
||||
> **Read before upgrading.** No schema change, no migration on any database. In this order:
|
||||
>
|
||||
@@ -46,6 +46,17 @@ once there are more than 20.
|
||||
> **4. One line in each project:** the proxy matcher (`src/proxy.ts`) —
|
||||
> `'/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'`; `iapl-doctor` warns `proxy-matcher` until it is changed. Without it
|
||||
> pages whose names only start with `api` / `admin` / `_next` skip the proxy, as before.
|
||||
>
|
||||
> **5. E-mail — nothing to do, one thing to know.** "Sending method" in Site integrations → E-mail sending is a
|
||||
> choice again: IWSN (built-in), Own SMTP server, Microsoft Graph (deprecated). **Upgrading writes nothing and
|
||||
> loses no mail:** the field shows the method the site sends through today as selected (no SMTP server → IWSN; an
|
||||
> SMTP server → Own SMTP server; `GRAPH_*` → Microsoft Graph), and the site keeps sending that way. **The first save
|
||||
> of Site integrations stores that choice; from then on the site sends that way only.** If the chosen method cannot
|
||||
> be used — "Own SMTP server" without server, user name and password, "Microsoft Graph" on a server without
|
||||
> `GRAPH_*` — e-mails **fail and the panel says so; they are not sent another way** (in 1.17.0 they would have gone
|
||||
> through SMTP or IWSN). So after the upgrade: open the tab, check that the method shown is the one meant, save.
|
||||
> No schema change: the choice is kept in `payload-kv`. A seed or script that set `emailTransport` keeps working
|
||||
> (it leaves the site on the old order); to choose, it writes `emailMethod`.
|
||||
|
||||
### Security
|
||||
- **Write-only secrets cannot be named in a query** (point 1 above). `secretReadAccess`, the field read rule behind
|
||||
@@ -132,6 +143,16 @@ once there are more than 20.
|
||||
the e-mail — every account may change its own e-mail (security.md).
|
||||
|
||||
### Changed
|
||||
- **E-mail: "Sending method" is an explicit choice again** — "IWSN (built-in)", "Own SMTP server", "Microsoft
|
||||
Graph (deprecated)" — and what is chosen is what is used (point 5 above). Only the chosen method's fields are
|
||||
shown; the state block and the test e-mail name it ("through IWSN" / "through your SMTP server" / "through
|
||||
Microsoft Graph"). A chosen method that cannot be used fails loudly — status `smtp-incomplete` /
|
||||
`graph-not-set-up`, doctor `mail-method` — and the mail is not sent another way; in 1.17.0 "Automatic" picked
|
||||
the transport from which fields were filled in. Stored without a schema change: the field `emailMethod` is
|
||||
virtual, the choice is in `payload-kv` (`MAIL_METHOD_KV_KEY`); `emailTransport` stays, hidden.
|
||||
New exports: `getMailMethod`, `setMailMethod`, `resolveMailMethod`, `isMailMethod`, `MAIL_METHODS`,
|
||||
`MAIL_METHOD_KV_KEY`, types `MailMethod`, `ResolvedMailMethod`, `MailMethodProblem`. `pnpm payload generate:types`
|
||||
gives a diff (the new field): run it and commit.
|
||||
- `AdminLogo` prints the sign-in panel when the plugin gives it `signIn` (the default with `whiteLabel`); wired by
|
||||
hand without that prop it is the plain logo as before. The logo on the login screen is now shown inside
|
||||
240 × 72 px (it was up to 420 × 120).
|
||||
|
||||
Reference in New Issue
Block a user