mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Prepopulate node credentials if present
This commit is contained in:
parent
a6a0352b70
commit
aa35484a30
@ -33,6 +33,10 @@ function registerType(type,constructor,opts) {
|
|||||||
|
|
||||||
function createNode(node,def) {
|
function createNode(node,def) {
|
||||||
Node.call(node,def);
|
Node.call(node,def);
|
||||||
|
var creds = credentials.get(node.id);
|
||||||
|
if (creds) {
|
||||||
|
node.credentials = creds;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function init(_settings,storage) {
|
function init(_settings,storage) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user