mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
[Fixes #5418] Lost Password not working with Anonymous Access Off
This commit is contained in:
@@ -242,6 +242,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AlwaysAccessible]
|
||||||
public ActionResult LostPassword(string nonce) {
|
public ActionResult LostPassword(string nonce) {
|
||||||
if ( _userService.ValidateLostPassword(nonce) == null ) {
|
if ( _userService.ValidateLostPassword(nonce) == null ) {
|
||||||
return RedirectToAction("LogOn");
|
return RedirectToAction("LogOn");
|
||||||
@@ -253,6 +254,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[AlwaysAccessible]
|
||||||
[ValidateInput(false)]
|
[ValidateInput(false)]
|
||||||
public ActionResult LostPassword(string nonce, string newPassword, string confirmPassword) {
|
public ActionResult LostPassword(string nonce, string newPassword, string confirmPassword) {
|
||||||
IUser user;
|
IUser user;
|
||||||
@@ -281,6 +283,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
return RedirectToAction("ChangePasswordSuccess");
|
return RedirectToAction("ChangePasswordSuccess");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AlwaysAccessible]
|
||||||
public ActionResult ChangePasswordSuccess() {
|
public ActionResult ChangePasswordSuccess() {
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user