Skip to content

Commit a52f8bd

Browse files
authored
fix: allow : to be used in password (#1390)
1 parent f68b7f9 commit a52f8bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/helpers/config-helper.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,11 @@ const api = {
181181
};
182182

183183
if (urlParts.auth) {
184-
result = _.assign(result, {
185-
username: urlParts.auth.split(':')[0],
186-
password: urlParts.auth.split(':')[1],
187-
});
184+
const authParts = urlParts.auth.split(':');
185+
result.username = authParts[0];
186+
if (authParts.length > 1) {
187+
result.password = authParts.slice(1).join(':');
188+
}
188189
}
189190

190191
return result;

0 commit comments

Comments
 (0)