Setting up direct login after signup

Tags: 68 views 0

How to activate direct login on your customers Store.

Configuring the Storefront

  1. Open the Web.config located in C:\Program Files (x86)\Atomia\PublicOrderPage.
  2. Change the ImmediateLogin setting to true. See example.
  3. <globalSetting name="ImmediateLogin" value="true" />
    
  4. Set the ImmediateProvisioning setting to true. See example.
  5. <globalSetting name="ImmediateProvisioning" value="true" />
    

Configuring the Atomia store

  1. Register Atomia.Store.PublicBillingApi.OrderCreator to the Atomia.Store.PublicBillingApi.TokenLoginOrderCreator implementation in the Unity container to override the default Atomia.Store.PublicBillingApi.SimpleOrderCreator implementation.
  2. Add something like the following to your custom App_Start/UnityConfig.cs:
  3. container.RegisterType<OrderCreator, Atomia.Store.PublicBillingApi.TokenLoginOrderCreator>(
            new InjectionConstructor(
                new ResolvedParameter<PaymentUrlProvider>(),
                new ResolvedArrayParameter<OrderDataHandler>(
                    new ResolvedParameter<OrderDataHandler>("Reseller"),
                    new ResolvedParameter<OrderDataHandler>("LanguageHandler"),
                    new ResolvedParameter<OrderDataHandler>("Currency"),
                    new ResolvedParameter<OrderDataHandler>("MainContact"),
                    new ResolvedParameter<OrderDataHandler>("BillingContact"),
                    new ResolvedParameter<OrderDataHandler>("CampaignCode"),
                    new ResolvedParameter<OrderDataHandler>("IpAddress"),
                    new ResolvedParameter<OrderDataHandler>("RegisterDomain"),
                    new ResolvedParameter<OrderDataHandler>("TransferDomain"),
                    new ResolvedParameter<OrderDataHandler>("OwnDomain"),
                    new ResolvedParameter<OrderDataHandler>("SetupFees"),
                    new ResolvedParameter<OrderDataHandler>("Default"),
                    new ResolvedParameter<OrderDataHandler>("RemovePostOrder")
                ),
                new ResolvedParameter<PublicBillingApiProxy>()));
    

Important!

Make sure you keep the OrderDataHandler parameters that you have in your actual configuration. If you have no custom order handlers, check the default App_Start/UnityConfig.cs so you have an up-to-date list of the default order handlers.

  1. After enabling this feature, remember to edit your email template accordingly. Search for template name CustomerWelcomeEmailBody.
  2. User is prompted to set password

    Image: User is prompted to set password when everything has been provisioned.

Was this helpful?