From 5a856437d0bde6f9eeecdc2354953168f5056305 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Thu, 4 Jun 2020 14:54:17 -0700 Subject: [PATCH] Show logout button if logged in on logout (#22444) * Show logout button if logged in on logout * Remove stuff --- .../Areas/Identity/Pages/V3/Account/Logout.cshtml | 13 ++++++++++++- .../Areas/Identity/Pages/V4/Account/Logout.cshtml | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml index 8e57434001..234123aa83 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml +++ b/src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Logout.cshtml @@ -6,5 +6,16 @@

@ViewData["Title"]

-

You have successfully logged out of the application.

+ @{ + if (User.Identity.IsAuthenticated) + { +
+ +
+ } + else + { +

You have successfully logged out of the application.

+ } + }
diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml index 8e57434001..234123aa83 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml @@ -6,5 +6,16 @@

@ViewData["Title"]

-

You have successfully logged out of the application.

+ @{ + if (User.Identity.IsAuthenticated) + { +
+ +
+ } + else + { +

You have successfully logged out of the application.

+ } + }