mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user