mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18789: LogOn override would break with new RememberMe checkbox
Work Item: 18789 --HG-- branch : 1.x
This commit is contained in:
@@ -82,7 +82,7 @@ namespace Orchard.Users.Controllers {
|
||||
[AlwaysAccessible]
|
||||
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",
|
||||
Justification = "Needs to take same parameter type as Controller.Redirect()")]
|
||||
public ActionResult LogOn(string userNameOrEmail, string password, string returnUrl, bool rememberMe) {
|
||||
public ActionResult LogOn(string userNameOrEmail, string password, string returnUrl, bool rememberMe = false) {
|
||||
var user = ValidateLogOn(userNameOrEmail, password);
|
||||
if (!ModelState.IsValid) {
|
||||
var shape = _orchardServices.New.LogOn().Title(T("Log On").Text);
|
||||
|
Reference in New Issue
Block a user