Skip to content

Commit 6489346

Browse files
TD-5752: Issue showing 'Your password has been changed' when logged out from the moodle screen
1 parent 3dbcd20 commit 6489346

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LearningHub.Nhs.WebUI/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public IActionResult UserLogout()
378378
[AllowAnonymous]
379379
public IActionResult Logout()
380380
{
381-
var redirectUri = $"{this.configuration["LearningHubAuthServiceConfig:Authority"]}/Home/SetIsPasswordUpdate?isLogout=true";
381+
var redirectUri = $"{this.configuration["LearningHubAuthServiceConfig:Authority"]}/Home/SetIsPasswordUpdate?isPasswordUpdate=false";
382382
return this.Redirect(redirectUri);
383383
}
384384

LearningHub.Nhs.WebUI/Controllers/MyAccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public async Task<IActionResult> UpdatePassword(ChangePasswordViewModel model)
458458
if (this.ModelState.IsValid)
459459
{
460460
await this.userService.UpdatePassword(model.NewPassword);
461-
var redirectUri = $"{this.configuration["LearningHubAuthServiceConfig:Authority"]}/Home/SetIsPasswordUpdate?isLogout=false";
461+
var redirectUri = $"{this.configuration["LearningHubAuthServiceConfig:Authority"]}/Home/SetIsPasswordUpdate?isPasswordUpdate=true";
462462
return this.Redirect(redirectUri);
463463
}
464464
else

0 commit comments

Comments
 (0)