From aa35484a301ad5b6f1f2611dd428d1ee08719179 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 18 Jul 2014 14:23:32 +0100 Subject: [PATCH] Prepopulate node credentials if present --- red/nodes/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/red/nodes/index.js b/red/nodes/index.js index ed8023f66..3fadfcf31 100644 --- a/red/nodes/index.js +++ b/red/nodes/index.js @@ -33,6 +33,10 @@ function registerType(type,constructor,opts) { function createNode(node,def) { Node.call(node,def); + var creds = credentials.get(node.id); + if (creds) { + node.credentials = creds; + } } function init(_settings,storage) {