Skip to content

Commit cb0011c

Browse files
LombiqTechnologiesBenedekFarkas
authored andcommitted
Users: Fixing that registration-related actions should always be accessible (#8166)
1 parent ba722cf commit cb0011c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ public ActionResult LogOff(string returnUrl) {
101101
return this.RedirectLocal(returnUrl);
102102
}
103103

104-
int MinPasswordLength {
105-
get {
106-
return _membershipService.GetSettings().MinRequiredPasswordLength;
107-
}
108-
}
104+
int MinPasswordLength => _membershipService.GetSettings().MinRequiredPasswordLength;
109105

110106
[AlwaysAccessible]
111107
public ActionResult Register() {
@@ -293,22 +289,27 @@ public ActionResult ChangePasswordSuccess() {
293289
return View();
294290
}
295291

292+
[AlwaysAccessible]
296293
public ActionResult RegistrationPending() {
297294
return View();
298295
}
299296

297+
[AlwaysAccessible]
300298
public ActionResult ChallengeEmailSent() {
301299
return View();
302300
}
303301

302+
[AlwaysAccessible]
304303
public ActionResult ChallengeEmailSuccess() {
305304
return View();
306305
}
307306

307+
[AlwaysAccessible]
308308
public ActionResult ChallengeEmailFail() {
309309
return View();
310310
}
311311

312+
[AlwaysAccessible]
312313
public ActionResult ChallengeEmail(string nonce) {
313314
var user = _userService.ValidateChallenge(nonce);
314315

0 commit comments

Comments
 (0)