From 4542323e1c73ee0d5406d4105bef4591c3e209b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=BE=D0=B1=D0=BE=D1=82=D0=BE=D0=B2=20=D0=9B=D0=B5?= =?UTF-8?q?=D0=B2?= Date: Sun, 3 Jul 2022 16:33:23 +0300 Subject: [PATCH] Update packages --- .../Amphasis.Azure.WebPortal.csproj | 16 ++++++++-------- Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs | 13 ++++++++++++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/Amphasis.Azure.WebPortal/Amphasis.Azure.WebPortal.csproj b/Amphasis.Azure.WebPortal/Amphasis.Azure.WebPortal.csproj index 536f53d..9789c02 100644 --- a/Amphasis.Azure.WebPortal/Amphasis.Azure.WebPortal.csproj +++ b/Amphasis.Azure.WebPortal/Amphasis.Azure.WebPortal.csproj @@ -8,14 +8,14 @@ - - - - - - - - + + + + + + + + diff --git a/Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs b/Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs index 7731927..752a231 100644 --- a/Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs +++ b/Amphasis.Azure.WebPortal/Pages/Profile.cshtml.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -11,8 +11,19 @@ namespace Amphasis.Azure.WebPortal.Pages [Authorize] public class ProfileModel : PageModel { + public ProfileModel() + { + + } + public void OnGet() { } + + public IActionResult OnPost() + { + if (!User.Identity.IsAuthenticated) return Redirect("/"); + return SignOut(); + } } }