Nicola,
You can get hibernate to show the sql that it is sending to the database:
https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#hibernate--jdbc
This may provide some more insight into your problem.
Ray
On Wed, 2019-05-08 at 00:57 -0700, Nicola Boldrin wrote:
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.
--
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]
--
- 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/4e72a97d7efabb63ba185ac744c69f78e2ba1bab.camel%40uvic.ca.