Skip to content

Commit

Permalink
Added hotfix for initial WindowsAuthentication use.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Moran committed Nov 21, 2017
1 parent 811b704 commit 33c7dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bonobo.Git.Server/Controllers/RepositoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ActionResult Index(string sortGroup = null, string searchString = null)
var unorderedRepositoryDetails = GetIndexModel().ToList();
if (!User.Identity.IsAuthenticated && !unorderedRepositoryDetails.Any())
{
return RedirectToAction("Logon", "Home", new { returnUrl = Url.Action("index", "Home") });
return RedirectToAction((AuthenticationProvider is WindowsAuthenticationProvider ? "WindowsLogin" : "Logon"), "Home", new { returnUrl = Url.Action("index", "Home") });
}
if (!string.IsNullOrEmpty(searchString))
{
Expand Down

0 comments on commit 33c7dde

Please sign in to comment.