Example #1
0
        public async Task <IActionResult> Confirmation()
        {
            try
            {
                logger.ScopeTrace(() => "Start confirmation verification.");

                var verified = await accountActionLogic.VerifyConfirmationAsync();

                var uiLoginUpParty = await tenantRepository.GetAsync <UiLoginUpPartyData>(Sequence.UiUpPartyId);

                securityHeaderLogic.AddImgSrc(uiLoginUpParty.IconUrl);
                securityHeaderLogic.AddImgSrcFromCss(uiLoginUpParty.Css);

                return(View(new ConfirmationViewModel
                {
                    Title = uiLoginUpParty.Title,
                    IconUrl = uiLoginUpParty.IconUrl,
                    Css = uiLoginUpParty.Css,
                    Verified = verified
                }));
            }
            catch (Exception ex)
            {
                throw new EndpointException($"Confirmation failed, Name '{RouteBinding.UpParty.Name}'.", ex)
                      {
                          RouteBinding = RouteBinding
                      };
            }
        }
Example #2
0
        public async Task <IActionResult> Confirmation()
        {
            try
            {
                logger.ScopeTrace("Start confirmation verification.");

                var verified = await accountActionLogic.VerifyConfirmationAsync();

                var uiLoginUpParty = await tenantRepository.GetAsync <UiLoginUpPartyData>(Sequence.UiUpPartyId);

                return(View(new ConfirmationViewModel
                {
                    CssStyle = uiLoginUpParty.CssStyle,
                    Verified = verified
                }));
            }
            catch (Exception ex)
            {
                throw new EndpointException($"Confirmation failed, Name '{RouteBinding.UpParty.Name}'.", ex)
                      {
                          RouteBinding = RouteBinding
                      };
            }
        }