Repository: syncope
Updated Branches:
  refs/heads/2_0_X 320f37d49 -> 199b66432
  refs/heads/master 496aeb439 -> 720b48f97


Ensuring the mustChangePassword flag is reset to false in case a password value 
is set


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/720b48f9
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/720b48f9
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/720b48f9

Branch: refs/heads/master
Commit: 720b48f9757bff2e70f1e6550e48a082db3ef670
Parents: 496aeb4
Author: Francesco Chicchiriccò <[email protected]>
Authored: Thu Dec 21 09:02:28 2017 +0100
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Thu Dec 21 09:02:28 2017 +0100

----------------------------------------------------------------------
 .../apache/syncope/core/persistence/jpa/entity/user/JPAUser.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/720b48f9/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/user/JPAUser.java
----------------------------------------------------------------------
diff --git 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/user/JPAUser.java
 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/user/JPAUser.java
index 8168f37..b6ce0c8 100644
--- 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/user/JPAUser.java
+++ 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/user/JPAUser.java
@@ -262,6 +262,7 @@ public class JPAUser
         try {
             this.password = ENCRYPTOR.encode(password, cipherAlgoritm);
             this.cipherAlgorithm = cipherAlgoritm;
+            setMustChangePassword(false);
         } catch (Exception e) {
             LOG.error("Could not encode password", e);
             this.password = null;

Reply via email to