feat(identity): register accounts and resend verification mail

This commit is contained in:
shira committed 2026-10-06 23:59:51 +03:00
1 parent 5e202ac972
commit 4436f626a3
55 files changed
+3227 -88

No files matched your search

+9 -1
View File
@@ -184,7 +184,15 @@ func (registration Registration) validate(location string) error {
return nil
}
// User is an account. Storage reconstructs it from trusted rows; new accounts
// User is an account. The PasswordHash, Scenario, and OnboardingStep of an
// unverified account are not authoritative: they hold what the first
// registration of the address stored only because the columns are mandatory.
// A repeat registration never changes them; the credentials that count are the
// pending ones on the verification token, and confirming that token applies
// them. No code may authenticate with, or trust the scenario of, an
// unverified account row.
//
// Storage reconstructs it from trusted rows; new accounts
// come from NewUser and changes from its methods.
type User struct {
ID uuid.UUID