From f3bf57dfb896aac30a25614834c5d6b1ef6fe34e Mon Sep 17 00:00:00 2001 From: swapnamol-abraham Date: Mon, 12 May 2025 15:36:53 +0100 Subject: [PATCH 1/2] TD-5538: IUncluded web.config in the solution --- AdminUI/LearningHub.Nhs.AdminUI/web.config | 18 ++++++++++++++++++ LearningHub.Nhs.WebUI/web.config | 21 +++++++++++++++++++++ WebAPI/LearningHub.Nhs.API/web.config | 21 +++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 AdminUI/LearningHub.Nhs.AdminUI/web.config create mode 100644 LearningHub.Nhs.WebUI/web.config create mode 100644 WebAPI/LearningHub.Nhs.API/web.config diff --git a/AdminUI/LearningHub.Nhs.AdminUI/web.config b/AdminUI/LearningHub.Nhs.AdminUI/web.config new file mode 100644 index 000000000..c62bb24a6 --- /dev/null +++ b/AdminUI/LearningHub.Nhs.AdminUI/web.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LearningHub.Nhs.WebUI/web.config b/LearningHub.Nhs.WebUI/web.config new file mode 100644 index 000000000..837247997 --- /dev/null +++ b/LearningHub.Nhs.WebUI/web.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/WebAPI/LearningHub.Nhs.API/web.config b/WebAPI/LearningHub.Nhs.API/web.config new file mode 100644 index 000000000..8771970fe --- /dev/null +++ b/WebAPI/LearningHub.Nhs.API/web.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From e983fff9aeadb4f32b33bcd5432ec44d83d81ca1 Mon Sep 17 00:00:00 2001 From: swapnamol-abraham Date: Mon, 12 May 2025 15:37:47 +0100 Subject: [PATCH 2/2] TD-5538: update web.config file --- AdminUI/LearningHub.Nhs.AdminUI/web.config | 35 ++++++++++--------- .../Controllers/AccountController.cs | 10 ++++++ LearningHub.Nhs.WebUI/Services/UserService.cs | 2 -- .../Account/AlreadyAnActiveSession.cshtml | 2 +- WebAPI/LearningHub.Nhs.API/web.config | 34 +++++++++--------- 5 files changed, 47 insertions(+), 36 deletions(-) diff --git a/AdminUI/LearningHub.Nhs.AdminUI/web.config b/AdminUI/LearningHub.Nhs.AdminUI/web.config index c62bb24a6..6bcb74972 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/web.config +++ b/AdminUI/LearningHub.Nhs.AdminUI/web.config @@ -1,18 +1,21 @@  - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LearningHub.Nhs.WebUI/Controllers/AccountController.cs b/LearningHub.Nhs.WebUI/Controllers/AccountController.cs index b082eaee4..2d2017cd2 100644 --- a/LearningHub.Nhs.WebUI/Controllers/AccountController.cs +++ b/LearningHub.Nhs.WebUI/Controllers/AccountController.cs @@ -1167,6 +1167,16 @@ public IActionResult InvalidUserAccount() return this.View(); } + /// + /// The user already has an already active session. Then prevent concurrent access to the Learning Hub. + /// + /// The . + [HttpGet] + public IActionResult AlreadyAnActiveSession() + { + return this.View(); + } + /// /// The ForgotPassword. /// diff --git a/LearningHub.Nhs.WebUI/Services/UserService.cs b/LearningHub.Nhs.WebUI/Services/UserService.cs index b6e277368..a0ba11d9a 100644 --- a/LearningHub.Nhs.WebUI/Services/UserService.cs +++ b/LearningHub.Nhs.WebUI/Services/UserService.cs @@ -1886,8 +1886,6 @@ public async Task> CheckUserHasAnActiveSess return userHistoryViewModel; } - - /// /// The base 64 m d 5 hash digest. /// diff --git a/LearningHub.Nhs.WebUI/Views/Account/AlreadyAnActiveSession.cshtml b/LearningHub.Nhs.WebUI/Views/Account/AlreadyAnActiveSession.cshtml index 1f5d3b6a7..a0e908c15 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/AlreadyAnActiveSession.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/AlreadyAnActiveSession.cshtml @@ -1,5 +1,5 @@ @{ - ViewData["Title"] = "Already active session"; + ViewData["Title"] = "Session already active"; }
diff --git a/WebAPI/LearningHub.Nhs.API/web.config b/WebAPI/LearningHub.Nhs.API/web.config index 8771970fe..62efcf17d 100644 --- a/WebAPI/LearningHub.Nhs.API/web.config +++ b/WebAPI/LearningHub.Nhs.API/web.config @@ -1,21 +1,21 @@  - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + \ No newline at end of file