vorburger commented on a change in pull request #639: Enhancement for FINERACT
#516
URL: https://github.com/apache/fineract/pull/639#discussion_r331805768
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/useradministration/service/AppUserWritePlatformServiceJpaRepositoryImpl.java
##########
@@ -216,6 +217,28 @@ public CommandProcessingResult updateUser(final Long
userId, final JsonCommand c
clients = this.clientRepositoryWrapper.findAll(clientIds);
}
+ final String passwordParamName = "password";
+ final String currentPasswordParamName = "currentPassword";
+ final String currentPasswordEncodedValue =
command.passwordValueOfParameterNamed(currentPasswordParamName,
platformPasswordEncoder,
Review comment:
would it make sense to rather do this only inside the `if
(command.hasParameter(passwordParamName))` ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services