Skip to content

Commit

Permalink
Update passwordChanged and set forcePasswordChange to false on setPas…
Browse files Browse the repository at this point in the history
…sword
  • Loading branch information
sprevilla committed May 10, 2016
1 parent 3f94090 commit f7f3097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/eeuser/src/main/java/org/jpos/ee/UserManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f7f3097

Please # to comment.