Ensures tempdata is set on our member controllers in the correct place and ensures that the RegisterModel doesn't explicitly set the RedirectUrl because we want it to be empty by default.

This commit is contained in:
Shannon
2015-08-27 14:56:42 +02:00
parent b550b9f9d1
commit e3598b99a5
5 changed files with 13 additions and 6 deletions

View File

@@ -24,6 +24,8 @@ namespace Umbraco.Web.Controllers
FormsAuthentication.SignOut();
}
TempData["LogoutSuccess"] = true;
//if there is a specified path to redirect to then use it
if (model.RedirectUrl.IsNullOrWhiteSpace() == false)
{
@@ -31,7 +33,7 @@ namespace Umbraco.Web.Controllers
}
//redirect to current page by default
TempData["LogoutSuccess"] = true;
return RedirectToCurrentUmbracoPage();
}
}