1
0
Fork 0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-03-15 04:30:29 +03:00

hashed password

This commit is contained in:
maryamsaleem 2025-02-06 15:17:14 +05:00
parent 5e0f7452a7
commit 95c9faf241

View file

@ -267,11 +267,11 @@ exports.kafkaProducerAsync = function (brokers, topic, message, options = {}, sa
* @param {number} sipPort The port of the SIP server
* @param {string} transport The transport protocol to use (e.g., 'udp' or 'tcp')
* @param {string} username The username for registration
* @param {string} password The password for registration
* @param {string} hashedPassword The password for registration
* @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, password, version) {
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, hashedPassword, version) {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
@ -299,7 +299,7 @@ exports.sipRegisterRequest = function (sipServer, sipPort, transport, username,
const authorizedRegisterRequest = exports.constructAuthorizedRequest(
registerRequest,
username,
password,
hashedPassword,
proxyAuthenticateHeader
);