From 7bbd359ce3ec39d2fe44ea2f09a374da12cc9851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=96hman?= Date: Tue, 12 May 2026 12:24:58 +0000 Subject: [PATCH] Add optional username field for auth --- app/ui.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index 24d32d55..24dcbc1e 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1047,6 +1047,12 @@ const UI = { password = undefined; } + let username = UI.getSetting('username'); + + if (username === null) { + username = undefined; + } + UI.hideStatus(); UI.closeConnectPanel(); @@ -1085,7 +1091,7 @@ const UI = { url.href, { shared: UI.getSetting('shared'), repeaterID: UI.getSetting('repeaterID'), - credentials: { password: password } }); + credentials: { username: username, password: password } }); } catch (exc) { Log.Error("Failed to connect to server: " + exc); UI.updateVisualState('disconnected');