public async Task <ActionResult> Edit() { if (HttpContext.User.Identity.IsAuthenticated) { using (var client = new HttpClient()) { UriText = UriText + "/?hashId=0&login="******"Entrar", "Login")); } }
public async Task <ActionResult> Entrar(SobreviventeViewModel model, string returnUrl) { SobreviventeViewModel user = null; using (var cliente = new HttpClient()) { UriText = UriText + "/?hashId=" + model.HashSeguranca + "&login="******"/") && !returnUrl.StartsWith("//") && !returnUrl.StartsWith("/\\")) { return(Redirect(returnUrl)); } else { return(RedirectToAction("Index", "Recursos")); } } else { ModelState.AddModelError("", "The or hash provided is incorrect."); return(RedirectToAction("Entrar", "Login")); } } //return View(user); }