Skip to content

Commit 5a04fe5

Browse files
Merge pull request #214 from TechnologyEnhancedLearning/Develop/Fixes/TD-5752-Issue-showing-'Your-password-has-been-changed'-when-logged-out-from-the-moodle-screen
TD-5752: Issue showing 'Your password has been changed' when logged o…
2 parents 37353fe + 3193e5a commit 5a04fe5

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)