mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -64,9 +64,9 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
|
||||
[AlwaysAccessible]
|
||||
public ActionResult LogOn() {
|
||||
public ActionResult LogOn(string returnUrl) {
|
||||
if (_authenticationService.GetAuthenticatedUser() != null)
|
||||
return Redirect("~/");
|
||||
return this.RedirectLocal(returnUrl);
|
||||
|
||||
var shape = _orchardServices.New.LogOn().Title(T("Log On").Text);
|
||||
return new ShapeResult(this, shape);
|
||||
|
Reference in New Issue
Block a user