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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Umbraco.Web.Controllers
|
||||
}
|
||||
|
||||
//redirect to current page by default
|
||||
TempData.Add("LogoutSuccess", true);
|
||||
TempData["LogoutSuccess"] = true;
|
||||
return RedirectToCurrentUmbracoPage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Umbraco.Web.Controllers
|
||||
}
|
||||
|
||||
//redirect to current page by default
|
||||
TempData.Add("ProfileUpdateSuccess", true);
|
||||
TempData["ProfileUpdateSuccess"] = true;
|
||||
return RedirectToCurrentUmbracoPage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Umbraco.Web.Controllers
|
||||
return Redirect(model.RedirectUrl);
|
||||
}
|
||||
//redirect to current page by default
|
||||
TempData.Add("FormSuccess", true);
|
||||
TempData["FormSuccess"] = true;
|
||||
return RedirectToCurrentUmbracoPage();
|
||||
case MembershipCreateStatus.InvalidUserName:
|
||||
ModelState.AddModelError((model.UsernameIsEmail || model.Username == null)
|
||||
|
||||
Reference in New Issue
Block a user