Fixed errors

pull/4558/head
Simon Nilsson 8 months ago
parent 9c66c46d51
commit f5e7d438d8

@ -241,9 +241,9 @@ class Monitor extends BeanModel {
/**
* Encode user and password to Base64 encoding
* for HTTP "basic" auth, as per RFC-7617
* @param {string|null} user - The username (nullable if not changed by a user)
* @param {string|null} pass - The password (nullable if not changed by a user)
* @returns {string}
* @param {string} user Username to encode
* @param {string} pass Password to encode
* @returns {string} Encoded username:password
*/
encodeBase64(user, pass) {
return Buffer.from(`${user || ""}:${pass || ""}`).toString("base64");

@ -106,7 +106,7 @@ class Cellsynt extends NotificationProvider {
data.params.text = msg.replace(/[^\x00-\x7F]/g, "");
}
let resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data);
if(resp.data == null || resp.data.includes("Error")) {
if (resp.data == null || resp.data.includes("Error")) {
this.throwGeneralAxiosError(resp.data);
}
} catch (error) {

@ -14,10 +14,8 @@
<option value="numeric">{{ $t("Numeric") }}</option>
</select>
<div class="form-text">
<p><b>{{ $t("Alpha (recommended)") }}:</b><br>
{{ $t("Alphanumeric string (max 11 characters). The following characters are guaranteed to work: a-z, A-Z and 0-9. Other characters may work but functionality can not be guaranteed. Recipients can not reply to messages with alphanumeric originators.") }}</p>
<p><b>{{ $t("Numeric") }}:</b><br>
{{ $t("Numeric value (max 15 digits) with telephone number on international format without leading 00 (example UK number 07920 110 000 should be set as 447920110000). Receiving mobile phone will add a leading + sign and thus see the originator as a normal mobile phone number (+447920110000). Therefore it is also possible to reply to the message.") }}</p>
<p><b>{{ $t("Alpha (recommended)") }}:</b><br /> {{ $t("Alphanumeric string (max 11 characters). The following characters are guaranteed to work: a-z, A-Z and 0-9. Other characters may work but functionality can not be guaranteed. Recipients can not reply to messages with alphanumeric originators.") }}</p>
<p><b>{{ $t("Numeric") }}:</b><br /> {{ $t("Numeric value (max 15 digits) with telephone number on international format without leading 00 (example UK number 07920 110 000 should be set as 447920110000). Receiving mobile phone will add a leading + sign and thus see the originator as a normal mobile phone number (+447920110000). Therefore it is also possible to reply to the message.") }}</p>
</div>
</div>
<div class="mb-3">

@ -54,7 +54,6 @@ import ZohoCliq from "./ZohoCliq.vue";
import Splunk from "./Splunk.vue";
import Cellsynt from "./Cellsynt.vue";
/**
* Manage all notification form.
* @type { Record<string, any> }

Loading…
Cancel
Save