mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-03 12:02:33 +02:00
password fix
This commit is contained in:
parent
95c9faf241
commit
f31ee27279
1 changed files with 3 additions and 3 deletions
|
@ -267,11 +267,11 @@ exports.kafkaProducerAsync = function (brokers, topic, message, options = {}, sa
|
||||||
* @param {number} sipPort The port of the SIP server
|
* @param {number} sipPort The port of the SIP server
|
||||||
* @param {string} transport The transport protocol to use (e.g., 'udp' or 'tcp')
|
* @param {string} transport The transport protocol to use (e.g., 'udp' or 'tcp')
|
||||||
* @param {string} username The username for registration
|
* @param {string} username The username for registration
|
||||||
* @param {string} hashedPassword The password for registration
|
* @param {string} password The password for registration
|
||||||
* @param {string} version The version of the SIP health monitor
|
* @param {string} version The version of the SIP health monitor
|
||||||
* @returns {Promise<object>} The response from the SIP REGISTER request
|
* @returns {Promise<object>} The response from the SIP REGISTER request
|
||||||
*/
|
*/
|
||||||
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, hashedPassword, version) {
|
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, password, version) {
|
||||||
|
|
||||||
// eslint-disable-next-line no-async-promise-executor
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
|
@ -299,7 +299,7 @@ exports.sipRegisterRequest = function (sipServer, sipPort, transport, username,
|
||||||
const authorizedRegisterRequest = exports.constructAuthorizedRequest(
|
const authorizedRegisterRequest = exports.constructAuthorizedRequest(
|
||||||
registerRequest,
|
registerRequest,
|
||||||
username,
|
username,
|
||||||
hashedPassword,
|
password,
|
||||||
proxyAuthenticateHeader
|
proxyAuthenticateHeader
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue