diff --git a/ManagementPage/ManagementPage/Pages/Index.cshtml b/ManagementPage/ManagementPage/Pages/Index.cshtml index b5f0c15..f7c5996 100644 --- a/ManagementPage/ManagementPage/Pages/Index.cshtml +++ b/ManagementPage/ManagementPage/Pages/Index.cshtml @@ -6,5 +6,21 @@

Welcome

-

Learn about building Web apps with ASP.NET Core.

-
+
+ @if (User.Identity == null || !User.Identity.IsAuthenticated) + { + +

Please log in

+ + + Login with + + + + + } + else + { +

You're already logged in, please use the User tab to see your devices.

+ } +
diff --git a/ManagementPage/ManagementPage/Pages/Privacy.cshtml b/ManagementPage/ManagementPage/Pages/Privacy.cshtml deleted file mode 100644 index 46ba966..0000000 --- a/ManagementPage/ManagementPage/Pages/Privacy.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@page -@model PrivacyModel -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

- -

Use this page to detail your site's privacy policy.

diff --git a/ManagementPage/ManagementPage/Pages/Privacy.cshtml.cs b/ManagementPage/ManagementPage/Pages/Privacy.cshtml.cs deleted file mode 100644 index 4a0347f..0000000 --- a/ManagementPage/ManagementPage/Pages/Privacy.cshtml.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace ManagementPage.Pages -{ - public class PrivacyModel : PageModel - { - private readonly ILogger _logger; - - public PrivacyModel(ILogger logger) - { - _logger = logger; - } - - public void OnGet() - { - } - } -} \ No newline at end of file diff --git a/ManagementPage/ManagementPage/Pages/Shared/_Layout.cshtml b/ManagementPage/ManagementPage/Pages/Shared/_Layout.cshtml index efeb770..b07ebfc 100644 --- a/ManagementPage/ManagementPage/Pages/Shared/_Layout.cshtml +++ b/ManagementPage/ManagementPage/Pages/Shared/_Layout.cshtml @@ -23,16 +23,16 @@ - - + @if (User.Identity != null && User.Identity.IsAuthenticated) + { + + } @if (User.Identity != null && User.Identity.IsAuthenticated) { -