Add password authentication to WebUI and implement session management

- Updated WebUI configuration to include a password field for authentication.
- Enhanced the WebUI server to handle login and logout functionality with session management.
- Added tests for authentication and session handling.
- Updated README and example configuration to reflect new authentication features.
This commit is contained in:
Andy Oknen 2025-07-30 08:34:29 +00:00
parent 51e1ef3ed0
commit 113dcbb72a
17 changed files with 676 additions and 74 deletions

View file

@ -11,8 +11,15 @@
<body>
<div class="container">
<header>
<h1>🌳 Yggdrasil Web Interface</h1>
<p>Network mesh management dashboard</p>
<div class="header-content">
<div>
<h1>🌳 Yggdrasil Web Interface</h1>
<p>Network mesh management dashboard</p>
</div>
<div class="header-actions">
<button onclick="logout()" class="logout-btn">Logout</button>
</div>
</div>
</header>
<main>
@ -50,6 +57,14 @@
<p>Yggdrasil Network • Minimal WebUI v1.0</p>
</footer>
</div>
<script>
function logout() {
if (confirm('Are you sure you want to logout?')) {
window.location.href = '/auth/logout';
}
}
</script>
</body>
</html>