Nomen 1.10.0: sign-in screening moves to plugins

Nomen 1.10.0 is out. This release opens up the extension points: plugins can step in before sign-in and registration, react to account changes, HTTP headers, robots and the sitemap, and declare hooks of their own. Password hashing is configurable as well.

Sign-in screening

Two new hooks, auth.login.pre and auth.register.pre, let a plugin look at the request — account, IP, referrer — and return allow, block, require a CAPTCHA, or allow in a degraded mode. Password sign-in, email codes, third-party sign-in and first-time sign-up through a provider all pass through this layer. The plugin never sees the plaintext password and cannot skip the second factor.

Failed sign-ins now have one exit (auth.login.failed): wrong codes, rate limits, disabled accounts and screening rejections all fire it. A hook before auth pages render (auth.page) can set device cookies or seed challenge state.

Accounts and responses

  • Account side: password changed, email changed, profile changed, avatar changed, account deleted.
  • HTTP: response headers, full-page output, robots directives, robots.txt, sitemap.xml. Admin layouts default to noindex, nofollow; plugins can change that per page.
  • Request lifecycle: before routing, before a 404, and around API request parameters and encoded responses.
  • After mail delivery (email.sent), whether it succeeded or failed.

Hooks of their own

A plugin can declare hooks in plugin.json under provides, or call Hooks::define() at runtime; names must start with the plugin’s own slug. Hooks::alias() keeps an old name working and logs a deprecation notice the first time it is used. php bin/nomen hooks shows what is listening at runtime, what plugins declared, and what is deprecated.

Password hashing

The new config/passwords.php chooses between auto, argon2id and bcrypt, takes custom options, and upgrades old hashes on sign-in. bcrypt input goes through HMAC first, so it never hits the 72-byte truncation. When the host cannot run Argon2id, Nomen falls back to bcrypt and logs it instead of failing; Site health reports how many accounts still use an old algorithm.

Upgrading

No database migrations; replace the files. config/passwords.php is optional — a missing file means the defaults. Behaviour is unchanged by default: hosts that support Argon2id still use Argon2id + pepper, and existing hashes are not rehashed in bulk.

Packaging fix: the 1.9.0 and 1.9.1 archives accidentally included a local test instance under test/; 1.10.0 no longer does.

Download and full changelog: nomenid.org/w/download · 1.10.0 release notes