From 1d091739c87541073f0ace24a23ccac3bf5e64e9 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 26 Apr 2024 15:01:03 +0800 Subject: [PATCH] Update server/model/monitor.js Co-authored-by: Adam Stachowicz --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index f6d59995..65bfb420 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -247,7 +247,7 @@ class Monitor extends BeanModel { * 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} + * @returns {string} Encoded Base64 string */ encodeBase64(user, pass) { return Buffer.from(`${user || ""}:${pass || ""}`).toString("base64");