Add WebUI dev mode auth & dev script

Introduce a development-only WebUI auth mode controlled by SNOWLUMA_DEV_MODE. When enabled, a fixed in-memory password ("snowluma-dev") is used, config/webui.json is not read or written, and password changes are disabled. Expose WebuiAuth.isDevMode() and WebuiAuth.devPassword, add startup logs when dev mode is active, and wire up dev:mode npm scripts (root and packages/core) using cross-env to set the env flags.
This commit is contained in:
手瓜一十雪 committed 2026-05-07 14:36:12 +08:00
1 parent 466a10a00a
commit 19a564991c
4 files changed
+55 -4

No files matched your search

+3
View File
@@ -20,6 +20,9 @@ importers:
.:
devDependencies:
cross-env:
specifier: ^10.1.0
version: 10.1.0
typescript:
specifier: 'catalog:'
version: 6.0.2