mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-03 12:06:04 -04:00
Added authentication logic
This commit is contained in:
parent
3721d11259
commit
3f5133d1ba
4 changed files with 48 additions and 12 deletions
|
@ -321,7 +321,7 @@ class Monitor extends BeanModel {
|
|||
}
|
||||
} else if (this.type === "mqtt") {
|
||||
try {
|
||||
bean.msg = await mqttAsync(this.url, this.topic, this.successMessage);
|
||||
bean.msg = await mqttAsync(this.url, this.mqttPort, this.mqttUsername, this.mqttPassword, this.mqttTopic, this.mqttSuccessMessage);
|
||||
bean.status = UP;
|
||||
} catch (error) {
|
||||
bean.status = DOWN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue