mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-24 07:49:13 +00:00
25 lines
440 B
Go
25 lines
440 B
Go
|
|
package senders
|
||
|
|
|
||
|
|
type CodeGenerator interface {
|
||
|
|
VerifyCode(verificationID, code string) error
|
||
|
|
}
|
||
|
|
|
||
|
|
type CodeGeneratorInfo struct {
|
||
|
|
ID string `json:"id,omitempty"`
|
||
|
|
VerificationID string `json:"verificationId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *CodeGeneratorInfo) GetID() string {
|
||
|
|
if c == nil {
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
return c.ID
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *CodeGeneratorInfo) GetVerificationID() string {
|
||
|
|
if c == nil {
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
return c.VerificationID
|
||
|
|
}
|