mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- Fixing 16274: If user is already logged on and goes to the LogOn page, user is redirected to ~/
--HG-- branch : dev
This commit is contained in:
@@ -43,6 +43,8 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
|
||||
public ActionResult LogOn(string returnUrl) {
|
||||
if(_authenticationService.GetAuthenticatedUser() != null)
|
||||
return Redirect("~/");
|
||||
return View("LogOn", new LogOnViewModel { Title = "Log On", ReturnUrl = returnUrl });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user