Authenticatoin Implementation

This commit is contained in:
2026-01-27 09:48:58 -05:00
parent 6e3f8b46a5
commit 4ae3a9eb17
17 changed files with 535 additions and 9 deletions

View File

@@ -12,6 +12,7 @@
<h1>Configuration</h1>
<div class="top-controls">
<a href="/" class="nav-link">Back to Dashboard</a>
<button id="logout-btn" class="nav-link" style="background:none;border:none;cursor:pointer;padding:0.6rem 1rem;">Logout</button>
</div>
</div>
@@ -95,6 +96,24 @@
<button class="config-save-btn" data-key="CHAIN_TIMER_THRESHOLD">Save</button>
</div>
</div>
<!-- Authentication Settings Section -->
<div class="faction-card small config-section">
<h2>Authentication Settings</h2>
<div class="config-group">
<label for="auth-password">Universal Password</label>
<p class="config-description">Shared password that all users use to log in</p>
<input type="password" id="auth-password" class="config-input" />
<button class="config-save-btn" data-key="AUTH_PASSWORD">Save</button>
</div>
<div class="config-group">
<label for="jwt-secret">JWT Secret Key</label>
<p class="config-description">Secret key for session tokens (change from default for security)</p>
<input type="password" id="jwt-secret" class="config-input" />
<button class="config-save-btn" data-key="JWT_SECRET">Save</button>
</div>
</div>
</div>
</div>