feat(identity): confirm registration email atomically

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 09:12:15 +03:00
1 parent 8e7ce8d71c
commit fade4e76e4
75 files changed
+4188 -403

No files matched your search

@@ -5602,10 +5602,15 @@ func (s *DirectionCode) UnmarshalText(data []byte) error {
type EmailAddress string
// Token from the email verification link.
// One-time token copied from the verification link and the password chosen for the registration that
// issued it. The password is never included in the link.
// Ref: #/components/schemas/EmailVerificationRequest
type EmailVerificationRequest struct {
Token VerificationToken `json:"token"`
// Password chosen for the registration that issued this token. It is sent in the request body and
// never appears in the verification link. The server applies NFKC normalization and the login length
// bounds, without reapplying the current new-registration blocklist.
Password string `json:"password"`
}
// GetToken returns the value of Token.
@@ -5613,11 +5618,21 @@ func (s *EmailVerificationRequest) GetToken() VerificationToken {
return s.Token
}
// GetPassword returns the value of Password.
func (s *EmailVerificationRequest) GetPassword() string {
return s.Password
}
// SetToken sets the value of Token.
func (s *EmailVerificationRequest) SetToken(val VerificationToken) {
s.Token = val
}
// SetPassword sets the value of Password.
func (s *EmailVerificationRequest) SetPassword(val string) {
s.Password = val
}
// Address that should receive a new verification link.
// Ref: #/components/schemas/EmailVerificationResendRequest
type EmailVerificationResendRequest struct {