Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment