加入用户登录体系,session cookie 鉴权,默认账号 admin/admin123

This commit is contained in:
2026-07-24 22:17:18 +08:00
parent 273924a36a
commit c628e208ca
6 changed files with 198 additions and 6 deletions
+5 -1
View File
@@ -206,7 +206,11 @@
</a>
</nav>
<div class="sidebar-footer">
<button class="theme-btn" id="themeToggle">🌙 暗色模式</button>
<div style="font-size:0.78rem;color:var(--sub);margin-bottom:8px;">
👤 {{ request.state.user.username if request.state.user else '—' }}
</div>
<a href="/auth/logout" style="font-size:0.78rem;color:var(--sub);text-decoration:none;">退出登录</a>
<button class="theme-btn" style="margin-top:8px;" id="themeToggle">🌙 暗色模式</button>
</div>
</aside>