zitadel/internal/user/model/mfa.go
Fabi 3cd3a238c2
fix: all enums same style (#262)
* fix: all enums same style

* fix: rename process to reduce

* add some missing enum renaming

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-06-23 14:47:47 +02:00

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
)