feat: QR self-registration for walk-in visitors #31

Merged
ngqile merged 20 commits from add-qr-self-registration into main 2026-12-01 06:11:05 +00:00
Showing only changes of commit ffda35b785 - Show all commits
@@ -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:<ip>`, at most 120 per 10 minutes, else 429 `TOO_MANY`.
- Page-load limit: Redis key `reg:load:<ip>`, 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;