mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
15 lines
344 B
Go
15 lines
344 B
Go
|
package policy
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/domain"
|
||
|
policy_pb "github.com/caos/zitadel/pkg/grpc/policy"
|
||
|
)
|
||
|
|
||
|
func MultiFactorTypeToDomain(multiFactorType policy_pb.MultiFactorType) domain.MultiFactorType {
|
||
|
switch multiFactorType {
|
||
|
//TODO: gap between proto and backend
|
||
|
default:
|
||
|
return domain.MultiFactorTypeUnspecified
|
||
|
}
|
||
|
}
|