[Fixes #5418] Lost Password not working with Anonymous Access Off

This commit is contained in:
Jack Cheng
2015-06-25 12:57:09 -07:00
parent ac305af963
commit 0c7fd67dca

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();
}