fix: use correct encryption keys in addHuman and set primary instance domain (#3486)

Co-authored-by: Fabi <[email protected]>
This commit is contained in:
Livio Amstutz
2022-04-25 14:36:10 +00:00
committed by GitHub
co-authored by Fabi
parent 0b6eb07e2d
commit 7a507fe63c
5 changed files with 30 additions and 31 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (c *Commands) SetUpOrg(ctx context.Context, o *OrgSetup) (*domain.ObjectDet
cmds, err := preparation.PrepareCommands(ctx, c.eventstore.Filter,
AddOrgCommand(ctx, orgAgg, o.Name),
AddHumanCommand(userAgg, &o.Human, c.userPasswordAlg, c.smsEncryption, c.smtpEncryption, c.userEncryption),
AddHumanCommand(userAgg, &o.Human, c.userPasswordAlg, c.userEncryption),
c.AddOrgMemberCommand(orgAgg, userID, domain.RoleOrgOwner),
)
if err != nil {