Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

[功能请求]不同文件夹使用不同的登录凭证 #139

Open
shoucandanghehe opened this issue Mar 13, 2021 · 2 comments
Open

[功能请求]不同文件夹使用不同的登录凭证 #139

shoucandanghehe opened this issue Mar 13, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed todo Feature to be implemented

Comments

@shoucandanghehe
Copy link

用作分享站的时候有些私货只想给hxd康,但是其他文件又不能直接公开
又不想搭多个站,所以可以整个多用户吗
如果有权限组那样的设定就更好了
如果可以的话,拜托了!
JCJG 82BWBS HU$Y(`7I $B

@spencerwooo
Copy link
Owner

可能会考虑使用目录下的 .password 文件里面的内容作为密码来设置 private 文件夹。

@spencerwooo spencerwooo added enhancement New feature or request help wanted Extra attention is needed todo Feature to be implemented labels Mar 14, 2021
@CzBiX
Copy link
Contributor

CzBiX commented May 25, 2021

使用 .password 涉及到目录深度的问题。可以考虑将 ENABLE_PATHS 修改成这样的结构来支持:

const ENABLE_PATHS = {
  AUTH_PASSWORD1: ['/path1', '/path2'],
  AUTH_PASSWORD2: ['/path3', '/path4'],
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed todo Feature to be implemented
Projects
None yet
Development

No branches or pull requests

3 participants