Fixes: U4-4419 TempData is not being cleared on RedirectToCurrentUmbracoPage - it actually shouldn't be cleared but we need to handle how we add it properly as tempdata only clears when it is read

This commit is contained in:
Shannon
2014-03-13 12:21:31 +11:00
parent a8858ecfdd
commit 85a74e4fa7
9 changed files with 138 additions and 43 deletions

View File

@@ -32,9 +32,9 @@ namespace Umbraco.Web.Controllers
}
//redirect to current page by default
TempData.Add("LoginSuccess", true);
//return RedirectToCurrentUmbracoPage();
return RedirectToCurrentUmbracoUrl();
TempData["LoginSuccess"] = true;
return RedirectToCurrentUmbracoPage();
//return RedirectToCurrentUmbracoUrl();
}
}
}