Hi
I'm trying to set a user password, but for some reason. the data don't get saved. I'm wondering if i'm using this the correct way. Here's my code:
public void changePassword(String name, String newPassword) { User user = identitySession.getUserByName(name); if (user != null) { user.setPassword(newPassword); identitySession.saveUser(user); log.debug("password changed for " + name); } else { log.error("no such user: " + name); } }
public void openSession() { this.jbpmContext = this.jbpmConfiguration.createJbpmContext(); this.identitySession = new IdentitySession(jbpmContext.getSession()); log.debug("session opened!"); } public void closeSession() { this.identitySession.close(); this.jbpmContext = null; log.debug("session closed!"); }