Esempio n. 1
0
        public ActionResult ConfirmAuth()
        {
            string login;
            string pass;

            if (Request.QueryString.AllKeys.Length == 2 && Request.QueryString.AllKeys.Contains("login") && Request.QueryString.AllKeys.Contains("pass"))
            {
                login = Request.QueryString["login"];
                pass  = Request.QueryString["pass"].Replace(' ', '+');

                var user = dataHelper.ConfirmAuth(login, pass);
                if (user != null)
                {
                    logger.InfoMessage("102", $"User {login} has confirmed email registration");
                    return(View(user));
                }
                return(View("Error"));
            }
            return(View("Error"));
        }