File tree Expand file tree Collapse file tree 5 files changed +47
-36
lines changed
AdminUI/LearningHub.Nhs.AdminUI
WebAPI/LearningHub.Nhs.API Expand file tree Collapse file tree 5 files changed +47
-36
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<configuration >
3- <system .webServer>
4- <modules runAllManagedModulesForAllRequests =" false" >
5- <remove name =" WebDAVModule" />
6- </modules >
7- <handlers >
8- <remove name =" aspNetCore" />
9- <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
10- </handlers >
11- <aspNetCore processPath =" bin\x64\Debug\net8.0\LearningHub.Nhs.AdminUI.exe" arguments =" " stdoutLogEnabled =" false" stdoutLogFile =" .\logs\stdout" hostingModel =" InProcess" >
12- <environmentVariables >
13- <environmentVariable name =" ASPNETCORE_ENVIRONMENT" value =" Development" />
14- <environmentVariable name =" ASPNETCORE_HTTPS_PORT" value =" 443" />
15- </environmentVariables >
16- </aspNetCore >
17- </system .webServer>
18- </configuration >
3+ <location path =" ." inheritInChildApplications =" false" >
4+ <system .webServer>
5+ <httpProtocol >
6+ <customHeaders >
7+ <remove name =" X-Powered-By" />
8+ <remove name =" Server" />
9+ </customHeaders >
10+ </httpProtocol >
11+ <security >
12+ <requestFiltering removeServerHeader =" true" />
13+ </security >
14+ <handlers >
15+ <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
16+ </handlers >
17+ <aspNetCore processPath =" dotnet" arguments =" .\LearningHub.Nhs.AdminUI.dll" stdoutLogEnabled =" false" stdoutLogFile =" .\logs\stdout" hostingModel =" inprocess" />
18+ </system .webServer>
19+ </location >
20+ </configuration >
21+ <!-- ProjectGuid: 1C97A3C2-73E8-4AFF-92EF-F65B4899FADB-->
Original file line number Diff line number Diff line change @@ -1167,6 +1167,16 @@ public IActionResult InvalidUserAccount()
11671167 return this . View ( ) ;
11681168 }
11691169
1170+ /// <summary>
1171+ /// The user already has an already active session. Then prevent concurrent access to the Learning Hub.
1172+ /// </summary>
1173+ /// <returns>The <see cref="IActionResult"/>.</returns>
1174+ [ HttpGet ]
1175+ public IActionResult AlreadyAnActiveSession ( )
1176+ {
1177+ return this . View ( ) ;
1178+ }
1179+
11701180 /// <summary>
11711181 /// The ForgotPassword.
11721182 /// </summary>
Original file line number Diff line number Diff line change @@ -1886,8 +1886,6 @@ public async Task<PagedResultSet<UserHistoryViewModel>> CheckUserHasAnActiveSess
18861886 return userHistoryViewModel ;
18871887 }
18881888
1889-
1890-
18911889 /// <summary>
18921890 /// The base 64 m d 5 hash digest.
18931891 /// </summary>
Original file line number Diff line number Diff line change 11@{
2- ViewData [" Title" ] = " Already active session " ;
2+ ViewData [" Title" ] = " Session already active " ;
33}
44<div class =" bg-white" >
55 <div class =" nhsuk-width-container app-width-container" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<configuration >
3- <location path =" ." inheritInChildApplications =" false" >
4- <system .webServer>
5- <httpProtocol >
6- <customHeaders >
7- <remove name =" X-Powered-By" />
8- <remove name =" Server" />
9- </customHeaders >
10- </httpProtocol >
11- <security >
12- <requestFiltering removeServerHeader =" true" />
13- </security >
14- <handlers >
15- <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
16- </handlers >
17- <aspNetCore processPath =" dotnet" arguments =" .\LearningHub.Nhs.Api.dll" stdoutLogEnabled =" false" stdoutLogFile =" .\logs\stdout" hostingModel =" InProcess" />
18- </system .webServer>
19- </location >
3+ <location path =" ." inheritInChildApplications =" false" >
4+ <system .webServer>
5+ <httpProtocol >
6+ <customHeaders >
7+ <remove name =" X-Powered-By" />
8+ <remove name =" Server" />
9+ </customHeaders >
10+ </httpProtocol >
11+ <security >
12+ <requestFiltering removeServerHeader =" true" />
13+ </security >
14+ <handlers >
15+ <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
16+ </handlers >
17+ <aspNetCore processPath =" dotnet" arguments =" .\LearningHub.Nhs.Api.dll" stdoutLogEnabled =" false" stdoutLogFile =" .\logs\stdout" hostingModel =" InProcess" />
18+ </system .webServer>
19+ </location >
2020</configuration >
2121<!-- ProjectGuid: 21F15E96-314F-4F39-822F-C2568CDC4A5A-->
You can’t perform that action at this time.
0 commit comments