Signup endpoint with e-mail verification flow #13
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Self-registration with double opt-in is a kickoff requirement; unverified accounts must not create content.
Scope
Endpoints:
POST /auth/signup(username, email, password; Zod-validated; creates user with statuspending_verification, enqueues verification mail with single-use hashed token, 24 h expiry),POST /auth/verify-email(consumes token, activates account),POST /auth/resend-verification(rate-limited). Respectinstance_settings.registration_mode(open/closed— closed returns a localized 403). Apply rate limits (signup 5/h/IP).Acceptance criteria
activeregistration_mode=closedblocks signup but not later loginsTechnical notes
auth_tokens).Dependencies
Depends on #10, #11, #12.
Size: ~1.5 days
Conventions: English code/comments, clear human-readable code, no hard-coded UI strings (ADR 0012, add
deanden), permission checks only via the shared guard (docs/architecture/permissions.md). Read the referenced ADRs before starting.