Commit Graph
6 Commits
Author SHA1 Message Date
MarSeventh 1e96f2e27b refactor: unify auth logic into authCore with authScope parameter
- Extract shared authentication logic into utils/auth/authCore.js
- Replace enableBasicAuth/enableAuthCode flags with clear authScope enum (ADMIN/USER/EITHER)
- Move all auth-related files into utils/auth/ subdirectory
- Eliminate duplicated admin auth logic between _middleware.js and dualAuth.js
- Fix: user session no longer grants access to admin-only endpoints
- Fix: dualAuth no longer bypasses authCode when admin is not configured
- Update all 17 import references across the codebase
- Preserve original function signatures (userAuthCheck, dualAuthCheck) for zero caller changes
2026-04-18 13:24:53 +08:00
MarSeventh 26226c2e10 目录树设置和体验优化 2026-03-01 11:25:39 +08:00
MarSeventh cfb6e638e2 目录树设置和体验优化 2026-03-01 11:13:43 +08:00
MarSeventh 50ff6d98b1 v2.6.1:增加文件夹候选项;部分安全和体验优化 2026-02-28 16:50:46 +08:00
MarSeventh 17645df56e Feat:取消粘贴上传文件类型限制;美化上传界面展示效果 2025-12-27 23:59:09 +08:00
MarSeventh 89f00d80ef 支持URL粘贴上传 2024-08-23 11:46:22 +08:00