A Payload site, ready to clone

Placeholder: concentric circles in violet

Signing in, harder to guess

What changed

An account still locks after 5 wrong passwords in a row, for 10 minutes, and a project can now change both numbers in its configuration. New: one network that fails 20 sign-ins in 15 minutes, against any accounts, is refused for the rest of that time without its passwords being checked, so trying one password on many accounts stops before any of them locks. “Forgot password” has a limit per network too.

Behind the scenes

On an https site the session cookie is marked Secure, so the browser never sends it over plain http. Every failed sign-in, lockout and refusal writes one line to the server log, with the network address and the email’s domain but never the full address or the password, ready for the host’s log tooling to alert on.

Where to see it

Sign out and try a wrong password a few times: after five, the account is locked; from the same network, after twenty failures the sign-in page says to try again later. The README section “Signing in” lists the settings and what isn’t covered yet: a stored record of attempts and email alerts.

project/project.config.ts
signIn: {
  maxLoginAttempts: 5,
  lockMinutes: 30,
  rateLimits: { login: { max: 50 } },
},

Users and roles, in the demo

Who signs in, and what each role can do.

Open Users and roles