rafaelweingartner commented on a change in pull request #2574:
[CLOUDSTACK-5235] ask users old password when they are executing a password
update
URL: https://github.com/apache/cloudstack/pull/2574#discussion_r184130784
##########
File path: server/src/main/java/com/cloud/user/AccountManagerImpl.java
##########
@@ -1209,41 +1209,41 @@ protected void
validateUserPasswordAndUpdateIfNeeded(String newPassword, UserVO
if (isAdmin) {
s_logger.trace(String.format("Admin account [uuid=%s] executing
password update for user [%s] ", callingAccount.getUuid(), user.getUuid()));
}
- if (!isAdmin && StringUtils.isBlank(oldPassword)) {
- throw new InvalidParameterValueException("You must inform the old
password when updating a user password.");
+ if (!isAdmin && StringUtils.isBlank(currentPassword)) {
+ throw new InvalidParameterValueException("You must inform the
current password when updating a user password.");
Review comment:
Done.
Thanks for the review!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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