mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -75,6 +75,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[AlwaysAccessible]
|
[AlwaysAccessible]
|
||||||
|
[ValidateInput(false)]
|
||||||
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",
|
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",
|
||||||
Justification = "Needs to take same parameter type as Controller.Redirect()")]
|
Justification = "Needs to take same parameter type as Controller.Redirect()")]
|
||||||
public ActionResult LogOn(string userNameOrEmail, string password, string returnUrl, bool rememberMe = false) {
|
public ActionResult LogOn(string userNameOrEmail, string password, string returnUrl, bool rememberMe = false) {
|
||||||
@@ -120,6 +121,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[AlwaysAccessible]
|
[AlwaysAccessible]
|
||||||
|
[ValidateInput(false)]
|
||||||
public ActionResult Register(string userName, string email, string password, string confirmPassword) {
|
public ActionResult Register(string userName, string email, string password, string confirmPassword) {
|
||||||
// ensure users can register
|
// ensure users can register
|
||||||
var registrationSettings = _orchardServices.WorkContext.CurrentSite.As<RegistrationSettingsPart>();
|
var registrationSettings = _orchardServices.WorkContext.CurrentSite.As<RegistrationSettingsPart>();
|
||||||
@@ -249,6 +251,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[ValidateInput(false)]
|
||||||
public ActionResult LostPassword(string nonce, string newPassword, string confirmPassword) {
|
public ActionResult LostPassword(string nonce, string newPassword, string confirmPassword) {
|
||||||
IUser user;
|
IUser user;
|
||||||
if ( (user = _userService.ValidateLostPassword(nonce)) == null ) {
|
if ( (user = _userService.ValidateLostPassword(nonce)) == null ) {
|
||||||
|
Reference in New Issue
Block a user