From cb0011c307f15be6600f3ecf40f521fed5b17a3f Mon Sep 17 00:00:00 2001 From: Lombiq Date: Sat, 9 Mar 2019 23:07:12 +0100 Subject: [PATCH] Users: Fixing that registration-related actions should always be accessible (#8166) --- .../Orchard.Users/Controllers/AccountController.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs index 7658e937ff8..eccb01e997c 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs +++ b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs @@ -101,11 +101,7 @@ public ActionResult LogOff(string returnUrl) { return this.RedirectLocal(returnUrl); } - int MinPasswordLength { - get { - return _membershipService.GetSettings().MinRequiredPasswordLength; - } - } + int MinPasswordLength => _membershipService.GetSettings().MinRequiredPasswordLength; [AlwaysAccessible] public ActionResult Register() { @@ -293,22 +289,27 @@ public ActionResult ChangePasswordSuccess() { return View(); } + [AlwaysAccessible] public ActionResult RegistrationPending() { return View(); } + [AlwaysAccessible] public ActionResult ChallengeEmailSent() { return View(); } + [AlwaysAccessible] public ActionResult ChallengeEmailSuccess() { return View(); } + [AlwaysAccessible] public ActionResult ChallengeEmailFail() { return View(); } + [AlwaysAccessible] public ActionResult ChallengeEmail(string nonce) { var user = _userService.ValidateChallenge(nonce);