mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Tweak the credential handling
- use node.credentials rather than node._creds for consistency with the runtime - simplify the structure of node.credentials
This commit is contained in:
@@ -92,13 +92,13 @@ var RED = function() {
|
||||
node.dirty = true;
|
||||
node.changed = false;
|
||||
}
|
||||
if(node._creds) {
|
||||
delete node._creds;
|
||||
if(node.credentials) {
|
||||
delete node.credentials;
|
||||
}
|
||||
});
|
||||
RED.nodes.eachConfig(function (confNode) {
|
||||
if (confNode._creds) {
|
||||
delete confNode._creds;
|
||||
if (confNode.credentials) {
|
||||
delete confNode.credentials;
|
||||
}
|
||||
});
|
||||
// Once deployed, cannot undo back to a clean state
|
||||
|
Reference in New Issue
Block a user