mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
3cd3a238c2
* fix: all enums same style * fix: rename process to reduce * add some missing enum renaming Co-authored-by: Livio Amstutz <livio.a@gmail.com>
37 lines
528 B
Go
37 lines
528 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 (
|
|
MfaStateUnspecified MfaState = iota
|
|
MfaStateNotReady
|
|
MfaStateReady
|
|
)
|
|
|
|
type MultiFactor struct {
|
|
Type MfaType
|
|
State MfaState
|
|
}
|
|
|
|
type MfaType int32
|
|
|
|
const (
|
|
MfaTypeUnspecified MfaType = iota
|
|
MfaTypeOTP
|
|
MfaTypeSMS
|
|
)
|