mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #1587 from node-red-hitachi/master-pj-cred
Fix the problem that does not encrypt credential file
This commit is contained in:
commit
a25f6fec9f
@ -1015,13 +1015,7 @@ RED.projects = (function() {
|
|||||||
};
|
};
|
||||||
var encryptionState = $("input[name=projects-encryption-type]:checked").val();
|
var encryptionState = $("input[name=projects-encryption-type]:checked").val();
|
||||||
if (encryptionState === 'enabled') {
|
if (encryptionState === 'enabled') {
|
||||||
var encryptionKeyType = $("input[name=projects-encryption-key]:checked").val();
|
projectData.credentialSecret = emptyProjectCredentialInput.val();
|
||||||
if (encryptionKeyType === 'custom') {
|
|
||||||
projectData.credentialSecret = emptyProjectCredentialInput.val();
|
|
||||||
} else {
|
|
||||||
// If 'use default', leave projectData.credentialSecret blank - as that will trigger
|
|
||||||
// it to use the default (TODO: if its set...)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Disabled encryption by explicitly setting credSec to false
|
// Disabled encryption by explicitly setting credSec to false
|
||||||
projectData.credentialSecret = false;
|
projectData.credentialSecret = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user