Add optional username field for auth
This commit is contained in:
parent
8e1ebdffba
commit
7bbd359ce3
|
|
@ -1047,6 +1047,12 @@ const UI = {
|
||||||
password = undefined;
|
password = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let username = UI.getSetting('username');
|
||||||
|
|
||||||
|
if (username === null) {
|
||||||
|
username = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
UI.hideStatus();
|
UI.hideStatus();
|
||||||
|
|
||||||
UI.closeConnectPanel();
|
UI.closeConnectPanel();
|
||||||
|
|
@ -1085,7 +1091,7 @@ const UI = {
|
||||||
url.href,
|
url.href,
|
||||||
{ shared: UI.getSetting('shared'),
|
{ shared: UI.getSetting('shared'),
|
||||||
repeaterID: UI.getSetting('repeaterID'),
|
repeaterID: UI.getSetting('repeaterID'),
|
||||||
credentials: { password: password } });
|
credentials: { username: username, password: password } });
|
||||||
} catch (exc) {
|
} catch (exc) {
|
||||||
Log.Error("Failed to connect to server: " + exc);
|
Log.Error("Failed to connect to server: " + exc);
|
||||||
UI.updateVisualState('disconnected');
|
UI.updateVisualState('disconnected');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue