WebDAV auth

This commit is contained in:
微凉
2021-11-28 16:18:09 +08:00
parent 3041da35ab
commit 0f0e1104a4
4 changed files with 52 additions and 0 deletions

View File

@ -141,6 +141,20 @@ func InitSettings() {
Description: "check down link password, your link will be 'https://alist.com/d/filename?pw=xxx'",
Group: model.PUBLIC,
},
{
Key: "WebDAV username",
Value: "alist",
Description: "WebDAV username",
Type: "string",
Group: model.PRIVATE,
},
{
Key: "WebDAV password",
Value: "alist",
Description: "WebDAV password",
Type: "string",
Group: model.PRIVATE,
},
}
for _, v := range settings {
_, err := model.GetSettingByKey(v.Key)