Ensure node.credentials exists for nodes with registered creds

Fixes #639
This commit is contained in:
Nick O'Leary 2015-05-04 23:28:55 +01:00
parent 01aa3324f8
commit 86013c7db4
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ function createNode(node,def) {
if (creds) {
//console.log("Attaching credentials to ",node.id);
node.credentials = creds;
} else if (credentials.getDefinition(node.type)) {
node.credentials = {};
}
}