feat(admin): gate the backoffice behind a name and password
- ui/auth.js: name/password check, session kept in sessionStorage (new tab asks again), 5 wrong attempts lock the form for 30s - admin view renders a login card until authenticated; adds an explicit logout button - SW precache includes auth.js, version bumped to 2026.11.19.3 (meta + sw.js in sync) - docs: AGENTS.md notes the gate is client-side; real protection is the server ADMIN_TOKEN
This commit is contained in:
1 parent
79b147d38f
commit
cd5cb5dd08
6 files changed
+208
-3
No files matched your search
+1
-1
@@ -22,7 +22,7 @@
|
||||
content="รายชื่อโปรเจคอดิเรกของเรา เลือกโปรเจคที่อยากดูได้เลย"
|
||||
/>
|
||||
<meta name="theme-color" content="#8A4722" />
|
||||
<meta name="app-version" content="2026.11.19.2" />
|
||||
<meta name="app-version" content="2026.11.19.3" />
|
||||
<link rel="manifest" href="manifest.json" />
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192.png" />
|
||||
<link rel="icon" type="image/png" sizes="64x64" href="icons/favicon-64.png" />
|
||||
|
||||
Reference in new issue
Block a user