feat(identity): confirm the email address with a six-digit code from the message

This commit is contained in:
shira committed 2026-10-10 00:52:46 +03:00
1 parent c94434cd09
commit d365a05c96
87 files changed
+4764 -224

No files matched your search

@@ -7857,6 +7857,14 @@ type ConfirmEmailBadRequest Problem
func (*ConfirmEmailBadRequest) confirmEmailRes() {}
type ConfirmEmailByCodeBadRequest Problem
func (*ConfirmEmailByCodeBadRequest) confirmEmailByCodeRes() {}
type ConfirmEmailByCodeForbidden Problem
func (*ConfirmEmailByCodeForbidden) confirmEmailByCodeRes() {}
type ConfirmEmailForbidden Problem
func (*ConfirmEmailForbidden) confirmEmailRes() {}
@@ -9612,6 +9620,48 @@ func (s *DirectionCode) UnmarshalText(data []byte) error {
type EmailAddress string
// Address, the six-digit code from its verification message, and the password chosen for the
// registration that issued the code. The password is checked the same way as in
// EmailVerificationRequest.
// Ref: #/components/schemas/EmailVerificationCodeRequest
type EmailVerificationCodeRequest struct {
Email EmailAddress `json:"email"`
Code VerificationCode `json:"code"`
// Password chosen for the registration that issued the code. The server applies NFKC normalization and
// the login length bounds, without reapplying the current new-registration blocklist.
Password string `json:"password"`
}
// GetEmail returns the value of Email.
func (s *EmailVerificationCodeRequest) GetEmail() EmailAddress {
return s.Email
}
// GetCode returns the value of Code.
func (s *EmailVerificationCodeRequest) GetCode() VerificationCode {
return s.Code
}
// GetPassword returns the value of Password.
func (s *EmailVerificationCodeRequest) GetPassword() string {
return s.Password
}
// SetEmail sets the value of Email.
func (s *EmailVerificationCodeRequest) SetEmail(val EmailAddress) {
s.Email = val
}
// SetCode sets the value of Code.
func (s *EmailVerificationCodeRequest) SetCode(val VerificationCode) {
s.Code = val
}
// SetPassword sets the value of Password.
func (s *EmailVerificationCodeRequest) SetPassword(val string) {
s.Password = val
}
// 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
@@ -9699,7 +9749,8 @@ func (s *EmailVerificationResult) SetOnboardingStep(val OnboardingStep) {
s.OnboardingStep = val
}
func (*EmailVerificationResult) confirmEmailRes() {}
func (*EmailVerificationResult) confirmEmailByCodeRes() {}
func (*EmailVerificationResult) confirmEmailRes() {}
// Always true in a successful response.
type EmailVerificationResultEmailVerified bool
@@ -31017,6 +31068,7 @@ func (s *TooManyRequestsHeaders) SetResponse(val Problem) {
func (*TooManyRequestsHeaders) acceptMyInvitationRes() {}
func (*TooManyRequestsHeaders) cancelMyInvitationRes() {}
func (*TooManyRequestsHeaders) confirmEmailByCodeRes() {}
func (*TooManyRequestsHeaders) confirmEmailRes() {}
func (*TooManyRequestsHeaders) createMyAssessmentAttemptRes() {}
func (*TooManyRequestsHeaders) createMySupportCaseRes() {}
@@ -31136,6 +31188,8 @@ type UpdateOrganizationUnauthorized Problem
func (*UpdateOrganizationUnauthorized) updateOrganizationRes() {}
type VerificationCode string
type VerificationToken string
type ViewMyInvitationBadRequest Problem