mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Check for missing encrypted credentials
This commit is contained in:
parent
49e69a54bd
commit
4d048af384
@ -239,7 +239,16 @@ var api = module.exports = {
|
||||
throw error;
|
||||
}
|
||||
} else {
|
||||
credentialCache = credentials;
|
||||
if (encryptionEnabled) {
|
||||
// Our config expects the credentials to be encrypted but the encrypted object is not found
|
||||
var error = new Error("Encrypted credentials not found");
|
||||
error.code = "credentials_load_failed";
|
||||
throw error
|
||||
} else {
|
||||
// credentialSecret is set to False
|
||||
log.warn("Using Unecrypted credentials")
|
||||
credentialCache = credentials;
|
||||
}
|
||||
}
|
||||
if (clearInvalidFlag) {
|
||||
// TODO: this delves too deep into Project structure
|
||||
|
Loading…
Reference in New Issue
Block a user