Skip to content

Commit

Permalink
0005790: Failed to decrypt node password from lost secret key in
Browse files Browse the repository at this point in the history
keystore
  • Loading branch information
erilong committed Apr 14, 2023
1 parent a7068d3 commit 9ebda3c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -671,7 +671,8 @@ protected synchronized void reOpenRegistration(String nodeId, String remoteHost,
Node node = nodeService.findNode(nodeId);
NodeSecurity security = nodeService.findNodeSecurity(nodeId);
String password = null;
if (security != null && parameterService.is(ParameterConstants.REGISTRATION_REOPEN_USE_SAME_PASSWORD, true)) {
if (security != null && StringUtils.isNotBlank(security.getNodePassword())
&& parameterService.is(ParameterConstants.REGISTRATION_REOPEN_USE_SAME_PASSWORD, true)) {
password = security.getNodePassword();
} else {
password = extensionService.getExtensionPoint(INodeIdCreator.class).generatePassword(node);
Expand Down

0 comments on commit 9ebda3c

Please sign in to comment.