Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-24 17:50:25 +01:00
co-authored by Claude Opus 5.5
parent f96b5c15d0
commit bef3a682b8
2 changed files with 16 additions and 7 deletions
+15 -6
View File
@@ -8,7 +8,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.
## Unreleased — the `back` link of the 2FA screens
## 1.16.5
### Security
- **The 2FA setup and verify screens no longer follow an unchecked `back` link.** `@clocklimited/payload-2fa`
@@ -37,20 +37,21 @@ once there are more than 20.
then the notice is wrong and sign-in still works — turn the check off for such a project.
- **More building blocks exported** for a project that wraps the 2FA views itself: `copyViews`,
`changedViewKeys`, `SAFE_TOTP_VIEW`, `totpViewImportKey`, `findImportMapFile`, `missingImportMapEntries`.
- **ipal-doctor** warns when the config registers the 2FA package's own setup / verify view directly (such a
view is outside the check).
- **ipal-doctor** warns when the config uses the 2FA package's own setup / verify view as a view's `Component`
(such a view is outside the check).
- **A project's own 2FA screen set through the wrapped factory** (a server or a client component) is rendered
behind the check and gets the checked `back`.
### Requires project changes
- **Every site with 2FA: `pnpm payload generate:importmap`, commit `importMap.js`, `rm -rf .next`, redeploy —
in the same deploy as the upgrade.** The plugin's view now stands in front of the package's two screens and
- **Every site with 2FA: upgrade, `pnpm payload generate:importmap`, commit `importMap.js`, `rm -rf .next`,
redeploy — all in ONE deploy. Run `pnpm exec ipal-doctor` before deploying.** The plugin's view now stands in front of the package's two screens and
needs its import-map entry (`@intecion/ipal-kit/admin#SafeTotpView`). **If you skip this, the build still
passes and the site starts, but the 2FA setup and verify screens have no code form (HTTP 200), so nobody can
sign in to the panel.** There is no error page. What tells you: `pnpm exec ipal-doctor` before the deploy
(`import map lacks …SafeTotpView`); the line `[ipal] The admin import map may be out of date` in the log at
every start; and, where the form should be, the notice "Two-step verification may not be available". No
option, env, schema or migration.
option, env, schema or migration. `pnpm ipal:skills` afterwards.
- **A project with its own 2FA screens or view registrations:** security.md "Your own 2FA screen".
- **Check after deploy:** log in with the password only, open
`/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F`, enter the code → you land on `/admin`. A normal login
still returns to the page you came from.
@@ -62,6 +63,14 @@ once there are more than 20.
- An absolute `back` on the site's own origin is kept only when the Payload config has `serverURL`; without it
only relative values are (the plugin and the package only ever produce relative ones).
- A missing `back` used to mean "go back in browser history"; it now means the admin root.
- `back=/admin/logout` is inside the panel and is followed: the user is logged out after the code.
- A client-side 2FA screen of your own that reads `useSearchParams()` gets the raw value; use the `back` prop.
- The stale import map check is a text search of the file on disk: it can warn although everything works, and
its notice text changes only with an own `twoFactor.provider`. The `ipal-doctor` warning about a raw view is a
text search too and misses unusual spellings.
- **Not run for this release:** the browser checks on Postgres, in Firefox or WebKit, with a Next `basePath` or in a
real Docker image with a runner stage; payload-2fa beta.2 to beta.6; Payload 3.90 to 3.93. They ran in Chromium on
MongoDB with beta.7 (production build) and, on an earlier commit of the same change, beta.1 (`next dev`).
## 1.16.4
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@intecion/ipal-kit",
"version": "1.16.4",
"version": "1.16.5",
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
"license": "MIT",
"repository": {