From ffda35b7850127e39f7af8b6a96e1c3f034f47c4 Mon Sep 17 00:00:00 2001 From: ngqile Date: Tue, 1 Dec 2026 12:16:59 +0800 Subject: [PATCH] docs(openspec): POST counts against the QR page-load limit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM --- openspec/changes/add-qr-self-registration/design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openspec/changes/add-qr-self-registration/design.md b/openspec/changes/add-qr-self-registration/design.md index d629e0b..c0f3261 100644 --- a/openspec/changes/add-qr-self-registration/design.md +++ b/openspec/changes/add-qr-self-registration/design.md @@ -46,7 +46,7 @@ All bodies are JSON. `companyId` is always a concrete company, set by mobile-api Public (`@AppAuth(skipValidate = true)`, controller `PublicRegistrationController` under `controller..`, path `/api/public/registration/{token}`): - **`GET`:** - - Page-load limit: Redis key `reg:load:`, at most 120 per 10 minutes, else 429 `TOO_MANY`. + - Page-load limit: Redis key `reg:load:`, at most 120 per 10 minutes, else 429 `TOO_MANY`. The POST counts against it too, before the code is checked, so guessing codes by POST is slowed as well. - A code works when all of these hold, otherwise 404 `CODE_INACTIVE` with message "This code is no longer active.": - the link exists and is enabled; - its event exists, is enabled and has `dateEnd`'s date (Malaysia) ≥ today;