Harden client and WebSocket proxy
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
autoLogin: {
|
||||
enabled: false,
|
||||
username: '',
|
||||
password: '',
|
||||
commands: []
|
||||
},
|
||||
accessibilityOptions: {
|
||||
@@ -36,8 +35,6 @@
|
||||
|
||||
// Local state - merge default with provided profile
|
||||
let localProfile = { ...defaultProfile, ...profile };
|
||||
console.log('Initialized profile editor with:', localProfile);
|
||||
|
||||
// Extract nested objects for easier binding
|
||||
let autoLogin = {
|
||||
...defaultProfile.autoLogin,
|
||||
@@ -53,7 +50,6 @@
|
||||
|
||||
// Handle form submission
|
||||
function handleSubmit() {
|
||||
console.log('Saving profile:', localProfile);
|
||||
// Update local profile
|
||||
localProfile.autoLogin = autoLogin;
|
||||
localProfile.accessibilityOptions = accessibilityOptions;
|
||||
@@ -129,13 +125,10 @@
|
||||
<input type="text" id="username" bind:value={autoLogin.username} />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" bind:value={autoLogin.password} />
|
||||
</div>
|
||||
<p class="credential-note">For security, the password is requested when connecting and is kept only in memory.</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label id="commands-label">Auto-Login Commands</label>
|
||||
<span class="field-label" id="commands-label">Auto-Login Commands</span>
|
||||
<div class="commands-list" role="list" aria-labelledby="commands-label">
|
||||
{#each autoLogin.commands as command, index}
|
||||
<div class="command-item" role="listitem">
|
||||
@@ -254,7 +247,6 @@
|
||||
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="password"],
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
|
||||
Reference in New Issue
Block a user