Skip to content

Commit

Permalink
Merge pull request #67 from flowforge/fix-blank-httpnodeauth
Browse files Browse the repository at this point in the history
Only write httpNodeAuth if non-blank user/pass are provided
  • Loading branch information
hardillb authored Sep 27, 2022
2 parents 793a7f6 + 9c9a865 commit a381a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtimeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getSettingsFile (settings) {
if (settings.settings.modules?.denyList !== undefined) {
projectSettings.modules.denyList = settings.settings.modules.denyList
}
if (settings.settings.httpNodeAuth !== undefined) {
if (settings.settings.httpNodeAuth?.user && settings.settings.httpNodeAuth?.pass) {
projectSettings.httpNodeAuth = `httpNodeAuth: ${JSON.stringify(settings.settings.httpNodeAuth)},`
}
if (settings.settings.disableTours) {
Expand Down

0 comments on commit a381a2e

Please sign in to comment.