Hi all,
I'm using CAS 5.3.8 and I'm trying to change my expired password.
I can specify my new password in form and submit it; the application shows the "Password Change Successful" message but DB is not updated.
In the debug mode I see that the method org.apereo.cas.pm.jdbc.JdbcPasswordManagementService.changeInternal(....) returns 1.
@Override
public boolean changeInternal(final Credential credential, final PasswordChangeBean bean) {
final UsernamePasswordCredential c = (UsernamePasswordCredential) credential;
final PasswordEncoder encoder = PasswordEncoderUtils.newPasswordEncoder(properties.getJdbc().getPasswordEncoder());
final String password = encoder.encode(bean.getPassword());
final int count = this.jdbcTemplate.update(properties.getJdbc().getSqlChangePassword(), password, c.getId());
return count > 0;
}
What's wrong?
Thanks all.