public ActionResult LoginPost(MemberLoginModel model) { if (Membership.ValidateUser(model.Username, model.Password)) { FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe); return RedirectToUmbracoPage(2120); } else { TempData["Status"] = "Invalid username or password"; return RedirectToCurrentUmbracoPage(); } }
public ActionResult MemberLoginPost(MemberLoginModel model) { if (Membership.ValidateUser(model.Username, model.Password)) { FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe); return RedirectToCurrentUmbracoPage(); } else { TempData["Status"] = "Forkert brugernavn eller kodeord!"; return RedirectToCurrentUmbracoPage(); } }