- 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:
Andrew Ma
2010-03-03 10:21:59 -08:00
parent b627b39193
commit c0b640c498

View File

@@ -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 });
}