mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-03 12:02:33 +02:00
use hasehd user passwords with undefined
This commit is contained in:
parent
40a32a30f7
commit
339a79800d
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ exports.kafkaProducerAsync = function (brokers, topic, message, options = {}, sa
|
||||||
* @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, userPassword, version) {
|
exports.sipRegisterRequest = function (sipServer, sipPort, transport, username, userPassword = undefined, 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) => {
|
||||||
|
@ -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 = {
|
const digestChallenge = {
|
||||||
realm: proxyAuthenticateHeader.realm.replace(/"/g, ""),
|
realm: proxyAuthenticateHeader.realm.replace(/"/g, ""),
|
||||||
nonce: proxyAuthenticateHeader.nonce.replace(/"/g, ""),
|
nonce: proxyAuthenticateHeader.nonce.replace(/"/g, ""),
|
||||||
|
|
Loading…
Add table
Reference in a new issue