diff --git a/StudentHouseDashboard/WebApp/Pages/Index.cshtml b/StudentHouseDashboard/WebApp/Pages/Index.cshtml index 0fc1d5c..3180466 100644 --- a/StudentHouseDashboard/WebApp/Pages/Index.cshtml +++ b/StudentHouseDashboard/WebApp/Pages/Index.cshtml @@ -4,7 +4,18 @@ ViewData["Title"] = "Home page"; } -
-

Student House Dashboard

- Announcements -
\ No newline at end of file +
+

Student House Dashboard

+

+ The student square for housemates! This site is currently under construction. +

+ @if (!User.Identity.IsAuthenticated) + { + Login + } + else + { + Announcements + } +
+Image: pexels.com \ No newline at end of file diff --git a/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs b/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs index 78bf0a5..266a117 100644 --- a/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs +++ b/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs @@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace WebApp.Pages { - [Authorize] public class IndexModel : PageModel { private readonly ILogger _logger; diff --git a/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml b/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml index 012f34f..6113aee 100644 --- a/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml +++ b/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml @@ -22,25 +22,17 @@ - @if (!User.Identity.IsAuthenticated) - { - - - } - else + @if (User.Identity.IsAuthenticated) { } +