Why Account?
ProcessWire ships a strong core User and Session layer designed primarily for CMS editors. Once a project needs customer-facing registration, passwordless login, Passkeys, TOTP MFA, device session revocation, multi-channel notifications, saved favorites, and GDPR export/erasure, building and maintaining those flows by hand introduces security risk and schema clutter.
Hand-Rolled Templates vs. Account
Section titled “Hand-Rolled Templates vs. Account”| Capability | Custom PHP Templates | ProcessWire Account |
|---|---|---|
| Authentication methods | Usually password-only forms with manual CSRF and throttle code | Password, Magic Link + 6-digit OTP, WebAuthn Passkeys, TOTP MFA, OAuth/OIDC, and sudo mode |
| Device sessions | Single PHP session cookie with no device list or theft detection | Split selector.validator account_remember rotation, device labels, per-device revocation, and account.session.theft_detected audit events |
| Member profile storage | Adds dozens of custom fields directly onto the core user template |
Single-owner profile_source: built-in account-profiles collection by default (zero user template mutation), or opt-in @fieldset:account-profile |
| Customer notifications | Scattered wireMail() calls with hardcoded HTML and no delivery logs |
4 channels (email, sms, webhook, in_app), 12 starter templates, condition rules, async queue, delivery logs, and in-app inbox |
| Saved items & wishlists | Custom session arrays or page fields that lose guest state | Multi-list account_saved_items (favorites, wishlist, compare) with HMAC-signed account_saved guest cookie merged automatically on sign-in |
| Privacy & compliance | Manual SQL dumps and ad-hoc user deletion scripts | Locked account-consents and account-audit ledgers, self-service JSON archive export, and coordinated erasure hooks |
| Admin guardrails | Easy to accidentally allow superuser or guest login on public forms |
AccountGuard blocks superuser/guest, rejects numeric ID lookups (ctype_digit), enforces allowedRoles, and sanitizes redirects |
Built for Progressive Adoption
Section titled “Built for Progressive Adoption”Account never forces an all-or-nothing frontend rewrite. You can start with Stage 1 virtual Inertia routes (/auth/* and /account/*) for a working member portal in minutes, switch to Stage 2 classic server-rendered PHP helpers ($account->render()) inside existing templates, or drive Stage 3 pure domain actions ($account->handle(new AccountRequest(...))) from your own controllers or /api/v1/identity/* headless clients.