mirror of
https://github.com/AlistGo/alist.git
synced 2025-05-23 16:22:24 +08:00
🎇 support add another alist
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/Xhofe/alist/conf"
|
||||
"github.com/Xhofe/alist/utils"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -83,6 +85,11 @@ func LoadSettings() {
|
||||
conf.IndexHtml = strings.Replace(conf.IndexHtml, "<!-- customize body -->", customizeBody.Value, 1)
|
||||
}
|
||||
|
||||
adminPassword, err := GetSettingByKey("password")
|
||||
if err == nil {
|
||||
conf.Token = utils.GetMD5Encode(fmt.Sprintf("https://github.com/Xhofe/alist-%s",adminPassword.Value))
|
||||
}
|
||||
|
||||
davUsername, err := GetSettingByKey("WebDAV username")
|
||||
if err == nil {
|
||||
conf.DavUsername = davUsername.Value
|
||||
|
Reference in New Issue
Block a user