mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 18:37:16 +00:00
Update server/model/monitor.js
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
27bcc968ec
commit
1d091739c8
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ class Monitor extends BeanModel {
|
||||||
* for HTTP "basic" auth, as per RFC-7617
|
* for HTTP "basic" auth, as per RFC-7617
|
||||||
* @param {string|null} user - The username (nullable if not changed by a user)
|
* @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)
|
* @param {string|null} pass - The password (nullable if not changed by a user)
|
||||||
* @returns {string}
|
* @returns {string} Encoded Base64 string
|
||||||
*/
|
*/
|
||||||
encodeBase64(user, pass) {
|
encodeBase64(user, pass) {
|
||||||
return Buffer.from(`${user || ""}:${pass || ""}`).toString("base64");
|
return Buffer.from(`${user || ""}:${pass || ""}`).toString("base64");
|
||||||
|
|
Loading…
Reference in a new issue