Skip to content

Commit 3193e5a

Browse files
TD-5752: Issue showing 'Your password has been changed' when logged out from the moodle screen
1 parent 37353fe commit 3193e5a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Auth/LearningHub.Nhs.Auth/Controllers/HomeController.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ public async Task<IActionResult> Error()
8383
/// <summary>
8484
/// IsPasswordUpdateMethod.
8585
/// </summary>
86-
/// <param name="isLogout">The Logout.</param>
86+
/// <param name="isPasswordUpdate">The PasswordUpdate.</param>
8787
/// <returns>The <see cref="ActionResult"/>.</returns>
8888
[HttpGet]
89-
public IActionResult SetIsPasswordUpdate(bool isLogout)
89+
public IActionResult SetIsPasswordUpdate(bool isPasswordUpdate)
9090
{
91-
if (isLogout)
91+
if (isPasswordUpdate)
9292
{
93-
this.webSettings.IsPasswordUpdate = false;
93+
this.webSettings.IsPasswordUpdate = true;
9494
}
9595
else
9696
{
97-
this.webSettings.IsPasswordUpdate = true;
97+
this.webSettings.IsPasswordUpdate = false;
9898
}
9999

100100
var redirectUri = $"{this.webSettings.LearningHubWebClient}Home/UserLogout";

0 commit comments

Comments
 (0)