Esempio n. 1
0
        public IActionResult Loging_in([FromForm] string email, [FromForm] string password)
        {
            RestCtr.email    = email;
            RestCtr.password = password;

            if (RestCtr.DoLogin() == true)
            {
                ViewData["Message"] = "logged in";
                return(View("Login"));
            }
            else
            {
                ViewData["Message"] = "password or email address invalid";
                return(View("Login"));
            }
        }