mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-15 10:25:11 +00:00
fix: rename iam to instance (#3345)
* fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename orgiampolicy to domain policy * fix: merge conflicts * fix: protos * fix: md files * implement deprecated org iam policy again Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -22,9 +22,9 @@ func (s *Step7) execute(ctx context.Context, commandSide *Commands) error {
|
||||
}
|
||||
|
||||
func (c *Commands) SetupStep7(ctx context.Context, step *Step7) error {
|
||||
fn := func(iam *IAMWriteModel) ([]eventstore.Command, error) {
|
||||
secondFactorModel := NewIAMSecondFactorWriteModel(domain.SecondFactorTypeOTP)
|
||||
iamAgg := IAMAggregateFromWriteModel(&secondFactorModel.SecondFactorWriteModel.WriteModel)
|
||||
fn := func(iam *InstanceWriteModel) ([]eventstore.Command, error) {
|
||||
secondFactorModel := NewInstanceSecondFactorWriteModel(domain.SecondFactorTypeOTP)
|
||||
iamAgg := InstanceAggregateFromWriteModel(&secondFactorModel.SecondFactorWriteModel.WriteModel)
|
||||
if !step.OTP {
|
||||
return []eventstore.Command{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user