refac: register only open while no verified acc exists, enforced by a use case rather than handler & sends verification email whose link uses the conf pub URL whose code expires after 2h

This commit is contained in:
fsylvain committed 2026-09-24 03:36:37 +02:00
1 parent 6e9e108033
commit 6d510d2805
14 files changed
+575 -30

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ import (
var ErrUserNotFound = errors.New("user not found")
var ErrInvalidCredentials = errors.New("invalid credentials")
var ErrRegistrationClosed = errors.New("registration closed")
type User struct {
ID uint32 `json:"id"`