You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2023/04/11 14:31:28 UTC
[syncope] branch 2_1_X updated: [SYNCOPE-1750] Ensure to skip pwd policy enforcement when no pwd update was requested
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new c3d2941173 [SYNCOPE-1750] Ensure to skip pwd policy enforcement when no pwd update was requested
c3d2941173 is described below
commit c3d2941173535cfb60b1aef19e513756131f272d
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Apr 11 16:31:13 2023 +0200
[SYNCOPE-1750] Ensure to skip pwd policy enforcement when no pwd update was requested
---
.../apache/syncope/core/workflow/java/AbstractUserWorkflowAdapter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/workflow-java/src/main/java/org/apache/syncope/core/workflow/java/AbstractUserWorkflowAdapter.java b/core/workflow-java/src/main/java/org/apache/syncope/core/workflow/java/AbstractUserWorkflowAdapter.java
index eb7672e247..1698a3507d 100644
--- a/core/workflow-java/src/main/java/org/apache/syncope/core/workflow/java/AbstractUserWorkflowAdapter.java
+++ b/core/workflow-java/src/main/java/org/apache/syncope/core/workflow/java/AbstractUserWorkflowAdapter.java
@@ -349,7 +349,7 @@ public abstract class AbstractUserWorkflowAdapter implements UserWorkflowAdapter
// enforce password and account policies
enforcePolicies(
user,
- false,
+ userPatch.getPassword() == null,
Optional.ofNullable(userPatch.getPassword()).map(PasswordPatch::getValue).orElse(null));
user = userDAO.save(user);