Merge pull request #5430 from jchenga/issues/5148-1.9.x

[Fixes #5418] Lost Password not working with Anonymous Access Off
This commit is contained in:
Sébastien Ros
2015-06-25 13:15:32 -07:00

View File

@@ -242,6 +242,7 @@ namespace Orchard.Users.Controllers {
}
}
[AlwaysAccessible]
public ActionResult LostPassword(string nonce) {
if ( _userService.ValidateLostPassword(nonce) == null ) {
return RedirectToAction("LogOn");
@@ -253,6 +254,7 @@ namespace Orchard.Users.Controllers {
}
[HttpPost]
[AlwaysAccessible]
[ValidateInput(false)]
public ActionResult LostPassword(string nonce, string newPassword, string confirmPassword) {
IUser user;
@@ -281,6 +283,7 @@ namespace Orchard.Users.Controllers {
return RedirectToAction("ChangePasswordSuccess");
}
[AlwaysAccessible]
public ActionResult ChangePasswordSuccess() {
return View();
}