Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeCancelService ¶
type ChangeCancelService struct {
service.Base[*modeliamemail.ChangeCancel, *modeliamemail.ChangeCancelReq, *modeliamemail.ChangeCancelRsp]
}
ChangeCancelService handles the token cancellation step that revokes a pending email change before confirmation happens.
func (*ChangeCancelService) Create ¶
func (s *ChangeCancelService) Create(ctx *types.ServiceContext, req *modeliamemail.ChangeCancelReq) (rsp *modeliamemail.ChangeCancelRsp, err error)
Create consumes the cancellation token and records that matching confirmation tokens must no longer complete the email change.
type ChangeConfirmService ¶
type ChangeConfirmService struct {
service.Base[*modeliamemail.ChangeConfirm, *modeliamemail.ChangeConfirmReq, *modeliamemail.ChangeConfirmRsp]
}
ChangeConfirmService handles the token confirmation step that finalizes a pending email change.
func (*ChangeConfirmService) Create ¶
func (s *ChangeConfirmService) Create(ctx *types.ServiceContext, req *modeliamemail.ChangeConfirmReq) (rsp *modeliamemail.ChangeConfirmRsp, err error)
Create consumes the confirmation token and updates the account email when the current database state still matches the pending change flow.
type ChangeRequestService ¶
type ChangeRequestService struct {
service.Base[*modeliamemail.ChangeRequest, *modeliamemail.ChangeRequestReq, *modeliamemail.ChangeRequestRsp]
}
ChangeRequestService handles authenticated requests that start the email change flow for the current account.
func (*ChangeRequestService) Create ¶
func (s *ChangeRequestService) Create(ctx *types.ServiceContext, req *modeliamemail.ChangeRequestReq) (rsp *modeliamemail.ChangeRequestRsp, err error)
Create validates the current password, checks the target email, and issues one-time confirmation and cancellation tokens for the email change flow.
type ChangeResendService ¶
type ChangeResendService struct {
service.Base[*modeliamemail.ChangeResend, *modeliamemail.ChangeResendReq, *modeliamemail.ChangeResendRsp]
}
ChangeResendService handles authenticated requests that resend confirmation emails for an in-progress email change flow.
func (*ChangeResendService) Create ¶
func (s *ChangeResendService) Create(ctx *types.ServiceContext, req *modeliamemail.ChangeResendReq) (rsp *modeliamemail.ChangeResendRsp, err error)
Create revalidates the current user and reissues the confirmation email for the target new email address.
type PasswordResetConfirmService ¶
type PasswordResetConfirmService struct {
service.Base[*modeliamemail.PasswordResetConfirm, *modeliamemail.PasswordResetConfirmReq, *modeliamemail.PasswordResetConfirmRsp]
}
PasswordResetConfirmService handles the token confirmation step that finalizes the email-driven password reset flow.
func (*PasswordResetConfirmService) Create ¶
func (s *PasswordResetConfirmService) Create(ctx *types.ServiceContext, req *modeliamemail.PasswordResetConfirmReq) (rsp *modeliamemail.PasswordResetConfirmRsp, err error)
Create completes the password reset flow by consuming the one-time token, updating the stored password hash, and invalidating active sessions.
type PasswordResetRequestService ¶
type PasswordResetRequestService struct {
service.Base[*modeliamemail.PasswordResetRequest, *modeliamemail.PasswordResetRequestReq, *modeliamemail.PasswordResetRequestRsp]
}
PasswordResetRequestService handles public password reset requests that start the email-driven password recovery flow.
func (*PasswordResetRequestService) Create ¶
func (s *PasswordResetRequestService) Create(ctx *types.ServiceContext, req *modeliamemail.PasswordResetRequestReq) (rsp *modeliamemail.PasswordResetRequestRsp, err error)
Create starts the password reset flow for the provided email address. It always returns the same public-facing message for accepted requests so the caller cannot infer whether the account exists, while still enforcing throttle limits before any token is created or email is sent.
type VerificationConfirmService ¶
type VerificationConfirmService struct {
service.Base[*model.Empty, *modeliamemail.VerificationConfirmReq, *modeliamemail.VerificationConfirmRsp]
}
VerificationConfirmService handles the token confirmation step that finalizes the email verification flow.
func (*VerificationConfirmService) Create ¶
func (s *VerificationConfirmService) Create(ctx *types.ServiceContext, req *modeliamemail.VerificationConfirmReq) (rsp *modeliamemail.VerificationConfirmRsp, err error)
Create consumes the one-time verification token and marks the corresponding email address as verified when the current account state still matches.
type VerificationRequestService ¶
type VerificationRequestService struct {
service.Base[*model.Empty, *modeliamemail.VerificationRequestReq, *modeliamemail.VerificationRequestRsp]
}
VerificationRequestService handles public requests that start the email verification flow for an eligible user account.
func (*VerificationRequestService) Create ¶
func (s *VerificationRequestService) Create(ctx *types.ServiceContext, req *modeliamemail.VerificationRequestReq) (rsp *modeliamemail.VerificationRequestRsp, err error)
Create starts an email verification flow and returns a generic acceptance message so callers cannot infer whether the target account exists.
type VerificationResendService ¶
type VerificationResendService struct {
service.Base[*model.Empty, *modeliamemail.VerificationResendReq, *modeliamemail.VerificationResendRsp]
}
VerificationResendService handles public requests that resend verification emails for accounts that are still pending verification.
func (*VerificationResendService) Create ¶
func (s *VerificationResendService) Create(ctx *types.ServiceContext, req *modeliamemail.VerificationResendReq) (rsp *modeliamemail.VerificationResendRsp, err error)
Create resends a verification email for an eligible account while keeping the response stable for unknown or already verified accounts.