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:
parent
01aa3324f8
commit
86013c7db4
@ -47,6 +47,8 @@ function createNode(node,def) {
|
|||||||
if (creds) {
|
if (creds) {
|
||||||
//console.log("Attaching credentials to ",node.id);
|
//console.log("Attaching credentials to ",node.id);
|
||||||
node.credentials = creds;
|
node.credentials = creds;
|
||||||
|
} else if (credentials.getDefinition(node.type)) {
|
||||||
|
node.credentials = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user