#17191 Return the Register page as a ShapeResult

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-01-31 17:54:12 -08:00
parent 758e6c5e08
commit ce1d3b31c4
5 changed files with 8 additions and 6 deletions

View File

@@ -99,7 +99,8 @@ namespace Orchard.Users.Controllers {
ViewData["PasswordLength"] = MinPasswordLength;
return View();
var shape = _orchardServices.New.Register();
return new ShapeResult(this, shape);
}
[HttpPost]
@@ -135,7 +136,8 @@ namespace Orchard.Users.Controllers {
}
// If we got this far, something failed, redisplay form
return Register();
var shape = _orchardServices.New.Register();
return new ShapeResult(this, shape);
}
public ActionResult RequestLostPassword() {