Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions AdminUI/LearningHub.Nhs.AdminUI/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="Server" />
</customHeaders>
</httpProtocol>
<security>
<requestFiltering removeServerHeader="true" />
</security>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\LearningHub.Nhs.AdminUI.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 1C97A3C2-73E8-4AFF-92EF-F65B4899FADB-->
10 changes: 10 additions & 0 deletions LearningHub.Nhs.WebUI/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,16 @@ public IActionResult InvalidUserAccount()
return this.View();
}

/// <summary>
/// The user already has an already active session. Then prevent concurrent access to the Learning Hub.
/// </summary>
/// <returns>The <see cref="IActionResult"/>.</returns>
[HttpGet]
public IActionResult AlreadyAnActiveSession()
{
return this.View();
}

/// <summary>
/// The ForgotPassword.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions LearningHub.Nhs.WebUI/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1886,8 +1886,6 @@ public async Task<PagedResultSet<UserHistoryViewModel>> CheckUserHasAnActiveSess
return userHistoryViewModel;
}



/// <summary>
/// The base 64 m d 5 hash digest.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ViewData["Title"] = "Already active session";
ViewData["Title"] = "Session already active";
}
<div class="bg-white">
<div class="nhsuk-width-container app-width-container">
Expand Down
21 changes: 21 additions & 0 deletions LearningHub.Nhs.WebUI/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="Server" />
</customHeaders>
</httpProtocol>
<security>
<requestFiltering removeServerHeader="true" />
</security>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\LearningHub.Nhs.WebUI.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 044CCD77-8B9E-4888-BC20-9FD6E2AFE904-->
21 changes: 21 additions & 0 deletions WebAPI/LearningHub.Nhs.API/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="Server" />
</customHeaders>
</httpProtocol>
<security>
<requestFiltering removeServerHeader="true" />
</security>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\LearningHub.Nhs.Api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 21F15E96-314F-4F39-822F-C2568CDC4A5A-->
Loading