1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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 = {};
}
}