mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 06:57:33 +00:00
bla
This commit is contained in:
@@ -19,6 +19,11 @@ func NewEmailVerifiedCommand(userID string, isVerified bool) *EmailVerifiedComma
|
||||
}
|
||||
}
|
||||
|
||||
// String implements [Commander].
|
||||
func (cmd *EmailVerifiedCommand) String() string {
|
||||
return "EmailVerifiedCommand"
|
||||
}
|
||||
|
||||
var (
|
||||
_ Commander = (*EmailVerifiedCommand)(nil)
|
||||
_ SetEmailOpt = (*EmailVerifiedCommand)(nil)
|
||||
@@ -57,6 +62,11 @@ func NewSendCodeCommand(userID string, urlTemplate *string) *SendCodeCommand {
|
||||
}
|
||||
}
|
||||
|
||||
// String implements [Commander].
|
||||
func (cmd *SendCodeCommand) String() string {
|
||||
return "SendCodeCommand"
|
||||
}
|
||||
|
||||
// Execute implements [Commander]
|
||||
func (cmd *SendCodeCommand) Execute(ctx context.Context, opts *CommandOpts) error {
|
||||
if err := cmd.ensureEmail(ctx, opts); err != nil {
|
||||
@@ -122,6 +132,11 @@ func NewReturnCodeCommand(userID string) *ReturnCodeCommand {
|
||||
}
|
||||
}
|
||||
|
||||
// String implements [Commander].
|
||||
func (cmd *ReturnCodeCommand) String() string {
|
||||
return "ReturnCodeCommand"
|
||||
}
|
||||
|
||||
// Execute implements [Commander]
|
||||
func (cmd *ReturnCodeCommand) Execute(ctx context.Context, opts *CommandOpts) error {
|
||||
if err := cmd.ensureEmail(ctx, opts); err != nil {
|
||||
|
Reference in New Issue
Block a user