Ejemplo n.º 1
0
        public IActionResult Contact()
        {
            var emailPlainText = _configuration["AppSettings:AdminEmail"];

            ViewData["AdminEmail"] = _stringHelperService.GetBase64EncodedString(emailPlainText);

            return(View());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Login(string returnUrl = null)
        {
            // Clear the existing external cookie to ensure a clean login process
            await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);

            ViewData["ReturnUrl"] = returnUrl;

            var emailPlainText = _configuration["AppSettings:AdminEmail"];

            ViewData["AdminEmail"] = _stringHelperService.GetBase64EncodedString(emailPlainText);
            return(View());
        }