Fixup SSH key auth for project repos

This commit is contained in:
Nick O'Leary
2018-01-18 22:17:48 +00:00
parent f95b414d22
commit f7f795f58a
13 changed files with 130 additions and 57 deletions

View File

@@ -88,9 +88,9 @@
"warnings": {
"undeployedChanges": "node has undeployed changes",
"nodeActionDisabled": "node actions disabled within subflow",
"missing-types": "Flows stopped due to missing node types. Check logs for details.",
"missing-types": "<p>Flows stopped due to missing node types.</p>",
"restartRequired": "Node-RED must be restarted to enable upgraded modules",
"credentials_load_failed": "<p>Flows stopped due to missing or invalid credentialSecret.</p>",
"credentials_load_failed": "<p>Flows stopped as the credentials could not be decrypted.</p><p>The flow credential file is encrypted, but the project's encryption key is missing or invalid.</p>",
"missing_flow_file": "<p>Project flow file not found.</p><p>The project is not configured with a flow file.</p>",
"project_empty": "<p>The project is empty.</p><p>Do you want to create a default set of project files?<br/>Otherwise, you will have to manually add files to the project outside of the editor.</p>"
},

View File

@@ -17,11 +17,13 @@ var theme = require("../editor/theme");
var util = require('util');
var runtime;
var settings;
var log;
module.exports = {
init: function(_runtime) {
runtime = _runtime;
settings = runtime.settings;
log = runtime.log;
},
runtimeSettings: function(req,res) {
var safeSettings = {