Add warning if using _credentialSecret

This commit is contained in:
Nick O'Leary
2018-03-20 00:03:26 +00:00
parent d48284f7ea
commit b307492487
2 changed files with 5 additions and 1 deletions

View File

@@ -201,6 +201,9 @@ var api = module.exports = {
encryptedCredentials = credentials;
}
log.debug("red/runtime/nodes/credentials.load : keyType="+encryptionKeyType);
if (encryptionKeyType === 'system') {
log.warn(log._("nodes.credentials.system-key-warning"));
}
return setupEncryptionPromise.then(function() {
var clearInvalidFlag = false;
if (credentials.hasOwnProperty("$")) {