diff --git a/ServiceHost/Pages/Index.cshtml.cs b/ServiceHost/Pages/Index.cshtml.cs
index 0be15164..7ede123f 100644
--- a/ServiceHost/Pages/Index.cshtml.cs
+++ b/ServiceHost/Pages/Index.cshtml.cs
@@ -17,8 +17,11 @@ namespace ServiceHost.Pages
_accountApplication = accountApplication;
}
- public void OnGet()
+ public IActionResult OnGet()
{
+ if(_authHelper.IsAuthenticated())
+ return Redirect("/login");
+ return Page();
}
public IActionResult OnGetLogout()