Add optional username field for auth

This commit is contained in:
Mikael Öhman 2026-05-12 12:24:58 +00:00
parent 8e1ebdffba
commit 7bbd359ce3
1 changed files with 7 additions and 1 deletions

View File

@ -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');