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.
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b3ed5482-3f0b-4817-ba68-d73b7a76c4b9%40apereo.org.