diff --git a/internal/command/instance.go b/internal/command/instance.go index 5b69ee9b5..94f4583b4 100644 --- a/internal/command/instance.go +++ b/internal/command/instance.go @@ -648,7 +648,11 @@ func setupAdmins(commands *Commands, human.ID = humanUserID *validations = append(*validations, - commands.AddHumanCommand(human, orgAgg.ID, commands.userPasswordHasher, commands.userEncryption, true), + // We no longer send an init mail anymore even if no auth method is set. + // This allows us to create the initial user without a password and send them an invitation mail if needed later on, + // which will be a necessary step for the new onboarding flow in the customer portal. + // Also since login v2 is now the default, we anyway wouldn't be able to handle the init link properly anymore. + commands.AddHumanCommand(human, orgAgg.ID, commands.userPasswordHasher, commands.userEncryption, false), ) setupAdminMembers(commands, validations, instanceAgg, orgAgg, humanUserID)