+
+
+
@item.Title - @T("Version: {0}", item.Version)
+
+
+
+
+
+
@(item.Description == null ? T("(No description").Text : item.Description)
+
+ - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
+ - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
+ - | @T("Rating: {0}", item.Rating)
+ - | @T("Ratings Count: {0}", item.RatingsCount)
+ - | @T("Website: ")
+ @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
+ else { @T("Unknown").ToString() }
+
+
+
-
-
-
-
@(item.Description == null ? T("(No description").Text : item.Description)
-
- - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
- - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
- - | @T("Rating: {0}", item.Rating)
- - | @T("Ratings Count: {0}", item.RatingsCount)
- - | @T("Website: ")
- @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
- else { @T("Unknown").ToString() }
-
-
+
+
}
diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Module.txt b/src/Orchard.Web/Modules/Orchard.Setup/Module.txt
index c916f5040..446a69aaf 100644
--- a/src/Orchard.Web/Modules/Orchard.Setup/Module.txt
+++ b/src/Orchard.Web/Modules/Orchard.Setup/Module.txt
@@ -1,5 +1,4 @@
Name: Setup
-AntiForgery: enabled
Author: The Orchard Team
Website: http://orchardproject.net
Version: 0.9.0
diff --git a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs
index 8bbc8a922..7da36e3f0 100644
--- a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs
+++ b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs
@@ -45,7 +45,7 @@ namespace Orchard.Users.Controllers {
if (currentUser == null) {
Logger.Information("Access denied to anonymous request on {0}", returnUrl);
var shape = _orchardServices.New.LogOn().Title(T("Access Denied").Text);
- return new ShapeResult(shape);
+ return new ShapeResult(this, shape);
}
//TODO: (erikpo) Add a setting for whether or not to log access denieds since these can fill up a database pretty fast from bots on a high traffic site
@@ -59,7 +59,7 @@ namespace Orchard.Users.Controllers {
return Redirect("~/");
var shape = _orchardServices.New.LogOn().Title(T("Log On").Text);
- return new ShapeResult(shape);
+ return new ShapeResult(this, shape);
}
[HttpPost]
@@ -69,7 +69,7 @@ namespace Orchard.Users.Controllers {
var user = ValidateLogOn(userNameOrEmail, password);
if (!ModelState.IsValid) {
var shape = _orchardServices.New.LogOn().Title(T("Log On").Text);
- return new ShapeResult(shape);
+ return new ShapeResult(this, shape);
}
_authenticationService.SignIn(user, false);
diff --git a/src/Orchard/Mvc/ShapeResult.cs b/src/Orchard/Mvc/ShapeResult.cs
index 797dc44f3..d357c6ba9 100644
--- a/src/Orchard/Mvc/ShapeResult.cs
+++ b/src/Orchard/Mvc/ShapeResult.cs
@@ -2,7 +2,9 @@
namespace Orchard.Mvc {
public class ShapeResult : ViewResult {
- public ShapeResult(dynamic shape) {
+ public ShapeResult(ControllerBase controller, dynamic shape) {
+ ViewData = controller.ViewData;
+ TempData = controller.TempData;
ViewData.Model = shape;
ViewName = "~/Core/Shapes/Views/ShapeResult/Display.cshtml";
}