diff --git a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/Dto/UpdateMemberSettingsRequest.cs b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/Dto/UpdateMemberSettingsRequest.cs index 06967caf1..66c9a5b41 100644 --- a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/Dto/UpdateMemberSettingsRequest.cs +++ b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/Dto/UpdateMemberSettingsRequest.cs @@ -54,5 +54,7 @@ public class UpdateMemberSettingsRequest public int PasswordExpiry { get; set; } public int PasswordExpiryReminder { get; set; } + + public bool ForceLogoutAfterPasswordChanged { get; set; } } } \ No newline at end of file diff --git a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SecurityController.cs b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SecurityController.cs index 9e6307ac9..b88d0384e 100644 --- a/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SecurityController.cs +++ b/Extensions/Content/Dnn.PersonaBar.Extensions/Services/SecurityController.cs @@ -384,7 +384,8 @@ public HttpResponseMessage GetMemberSettings() Host.EnableStrengthMeter, Host.EnableIPChecking, Host.PasswordExpiry, - Host.PasswordExpiryReminder + Host.PasswordExpiryReminder, + ForceLogoutAfterPasswordChanged = HostController.Instance.GetBoolean("ForceLogoutAfterPasswordChanged") } } }; @@ -421,6 +422,7 @@ public HttpResponseMessage UpdateMemberSettings(UpdateMemberSettingsRequest requ HostController.Instance.Update("MembershipDaysBeforePasswordReuse", request.MembershipDaysBeforePasswordReuse.ToString(), false); HostController.Instance.Update("PasswordExpiry", request.PasswordExpiry.ToString()); HostController.Instance.Update("PasswordExpiryReminder", request.PasswordExpiryReminder.ToString()); + HostController.Instance.Update("ForceLogoutAfterPasswordChanged", request.ForceLogoutAfterPasswordChanged ? "Y" : "N", false); return Request.CreateResponse(HttpStatusCode.OK, new { Success = true }); } diff --git a/Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Security.Web/src/components/memberManagement/index.jsx b/Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Security.Web/src/components/memberManagement/index.jsx index 742d08d4e..b090a0826 100644 --- a/Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Security.Web/src/components/memberManagement/index.jsx +++ b/Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Security.Web/src/components/memberManagement/index.jsx @@ -264,7 +264,7 @@ class MemberManagementPanelBody extends Component { -
+