Commit 8b621d99 authored by michael.simon's avatar michael.simon
Browse files

if instead of else if. Even if pw_location is registry, both is applied.

now fixed.
parent 930e95d3
......@@ -463,7 +463,7 @@ public class RegisterUserServiceImpl implements RegisterUserService {
serviceEntity.getServiceProps().get("pw_location").equalsIgnoreCase("registry")) {
registry.getRegistryValues().put("userPassword", passwordUtil.generatePassword("SHA-512", password));
}
if (serviceEntity.getServiceProps().containsKey("pw_location") &&
else if (serviceEntity.getServiceProps().containsKey("pw_location") &&
serviceEntity.getServiceProps().get("pw_location").equalsIgnoreCase("both")) {
registry.getRegistryValues().put("userPassword", passwordUtil.generatePassword("SHA-512", password));
((SetPasswordCapable) workflow).setPassword(userEntity, serviceEntity, registry, auditor, password);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment