mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +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
|
||
|
}
|