From f7f3097ae4a21c0816bda32ab2d03210c6a906b0 Mon Sep 17 00:00:00 2001 From: Santiago Revilla Date: Tue, 10 May 2016 17:50:00 -0300 Subject: [PATCH] Update passwordChanged and set forcePasswordChange to false on setPassword --- modules/eeuser/src/main/java/org/jpos/ee/UserManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/eeuser/src/main/java/org/jpos/ee/UserManager.java b/modules/eeuser/src/main/java/org/jpos/ee/UserManager.java index 1ea0058f70..ebfcb214bd 100644 --- a/modules/eeuser/src/main/java/org/jpos/ee/UserManager.java +++ b/modules/eeuser/src/main/java/org/jpos/ee/UserManager.java @@ -21,6 +21,7 @@ import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; +import java.util.Date; import java.util.List; import org.bouncycastle.util.Arrays; @@ -70,6 +71,8 @@ public void setPassword (User u, String clearpass, User author, VERSION v) throw setV1Password (u, clearpass); break; } + u.setPasswordChanged(new Date()); + u.setForcePasswordChange(false); RevisionManager revmgr = new RevisionManager(db); if (author == null) author = u;