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:
1 parent
6e9e108033
commit
6d510d2805
14 files changed
+575
-30
No files matched your search
@@ -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"`
|
||||
|
||||
Reference in new issue
Block a user