Skip to content

Commit

Permalink
use hasehd user passwords with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamsaleem committed Feb 6, 2025
1 parent 40a32a3 commit 339a798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/util-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ exports.kafkaProducerAsync = function (brokers, topic, message, options = {}, sa
* @param {string} version The version of the SIP health monitor
* @returns {Promise<object>} The response from the SIP REGISTER request
*/
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, userPassword, version) {
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, userPassword = undefined, version) {

// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
Expand Down Expand Up @@ -366,7 +366,7 @@ exports.sipRegister = function (registerRequest) {
}
});
};
exports.constructAuthorizedRequest = function (request, username, userPassword, proxyAuthenticateHeader) {
exports.constructAuthorizedRequest = function (request, username, userPassword = undefined, proxyAuthenticateHeader) {
const digestChallenge = {
realm: proxyAuthenticateHeader.realm.replace(/"/g, ""),
nonce: proxyAuthenticateHeader.nonce.replace(/"/g, ""),
Expand Down

0 comments on commit 339a798

Please sign in to comment.