- Removed Orchard.Mvc.NotFoundResult, replaced by the new MVC HttpNotFoundViewResult

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-10-14 11:30:58 -07:00
parent dc5cc339a7
commit dd53923130
17 changed files with 65 additions and 95 deletions

View File

@@ -14,7 +14,6 @@ using Orchard.Settings;
using JetBrains.Annotations;
using Orchard.ContentManagement;
using Orchard.Users.Models;
using Orchard.Mvc.Results;
namespace Orchard.Users.Controllers {
[HandleError, Themed]
@@ -96,7 +95,7 @@ namespace Orchard.Users.Controllers {
// ensure users can register
var registrationSettings = CurrentSite.As<RegistrationSettingsPart>();
if ( !registrationSettings.UsersCanRegister ) {
return new NotFoundResult();
return HttpNotFound();
}
ViewData["PasswordLength"] = MinPasswordLength;
@@ -109,7 +108,7 @@ namespace Orchard.Users.Controllers {
// ensure users can register
var registrationSettings = CurrentSite.As<RegistrationSettingsPart>();
if ( !registrationSettings.UsersCanRegister ) {
return new NotFoundResult();
return HttpNotFound();
}
ViewData["PasswordLength"] = MinPasswordLength;