package policy import ( "github.com/caos/zitadel/internal/api/grpc/object" "github.com/caos/zitadel/internal/iam/model" policy_pb "github.com/caos/zitadel/pkg/grpc/policy" ) func ModelPasswordComplexityPolicyToPb(policy *model.PasswordComplexityPolicyView) *policy_pb.PasswordComplexityPolicy { return &policy_pb.PasswordComplexityPolicy{ MinLength: policy.MinLength, HasUppercase: policy.HasUppercase, HasLowercase: policy.HasLowercase, HasNumber: policy.HasNumber, HasSymbol: policy.HasSymbol, Details: object.ToDetailsPb( policy.Sequence, policy.ChangeDate, "policy.ResourceOwner", //TODO: ro ), } }