diff --git a/src/helpers/config-helper.js b/src/helpers/config-helper.js index c68c29342..d62adddb2 100644 --- a/src/helpers/config-helper.js +++ b/src/helpers/config-helper.js @@ -181,10 +181,11 @@ const api = { }; if (urlParts.auth) { - result = _.assign(result, { - username: urlParts.auth.split(':')[0], - password: urlParts.auth.split(':')[1], - }); + const authParts = urlParts.auth.split(':'); + result.username = authParts[0]; + if (authParts.length > 1) { + result.password = authParts.slice(1).join(':'); + } } return result;