mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
24 lines
381 B
Go
24 lines
381 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/crypto"
|
||
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
)
|
||
|
|
||
|
type OTP struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
Secret *crypto.CryptoValue
|
||
|
SecretString string
|
||
|
Url string
|
||
|
State MfaState
|
||
|
}
|
||
|
|
||
|
type MfaState int32
|
||
|
|
||
|
const (
|
||
|
MFASTATE_UNSPECIFIED MfaState = iota
|
||
|
MFASTATE_NOTREADY
|
||
|
MFASTATE_READY
|
||
|
)
|