Prepopulate node credentials if present

This commit is contained in:
Nick O'Leary 2014-07-18 14:23:32 +01:00
parent a6a0352b70
commit aa35484a30
1 changed files with 4 additions and 0 deletions

View File

@ -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) {