in src/main/java/org/apache/fineract/cn/dev/ServiceRunner.java [665:675]
private void enableUser(final UserWithPassword userWithPassword) throws InterruptedException {
final Authentication passwordOnlyAuthentication
= identityManager.api().login(userWithPassword.getIdentifier(), userWithPassword.getPassword());
try (final AutoUserContext ignored
= new AutoUserContext(userWithPassword.getIdentifier(), passwordOnlyAuthentication.getAccessToken())) {
identityManager.api().changeUserPassword(
userWithPassword.getIdentifier(), new Password(userWithPassword.getPassword()));
Assert.assertTrue(eventRecorder.wait(EventConstants.OPERATION_PUT_USER_PASSWORD,
userWithPassword.getIdentifier()));
}
}