diff --git a/Bonobo.Git.Server/Controllers/HomeController.cs b/Bonobo.Git.Server/Controllers/HomeController.cs index 3668cc281..676cc6942 100644 --- a/Bonobo.Git.Server/Controllers/HomeController.cs +++ b/Bonobo.Git.Server/Controllers/HomeController.cs @@ -166,6 +166,9 @@ public ActionResult WindowsLogin(string returnUrl) public ActionResult LogOn(string returnUrl) { + if (AuthenticationProvider is WindowsAuthenticationProvider) { + return RedirectToAction("WindowsLogin", new { ReturnUrl = returnUrl }); + } return View(new LogOnModel { ReturnUrl = returnUrl }); }