public async Task <ActionResult> Login(LoginViewModel model, string returnUrl)
 {
     try
     {
         SetInitializers();
         return(await app.ApplicantLogin(model, returnUrl));
     }
     catch
     {
         return(View(model));
     }
 }
Exemple #2
0
        public async Task <ActionResult> Portal(LoginViewModel model)
        {
            string returnUrl = (string)TempData["Url"];

            try
            {
                SetInitializers();
                return(await app.ApplicantLogin(model, returnUrl));
            }
            catch
            {
                TempData["ErrorMessage"] = "Invalid Email and Password Combination; Check and Try again";
                return(RedirectToAction("Portal"));
            }
        }