mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
✨ support empty password
This commit is contained in:
parent
8a219d0732
commit
5c3f91bb55
@ -114,7 +114,11 @@ func LoadSettings() {
|
||||
// token
|
||||
adminPassword, err := GetSettingByKey("password")
|
||||
if err == nil {
|
||||
conf.Token = utils.GetMD5Encode(fmt.Sprintf("https://github.com/Xhofe/alist-%s", adminPassword.Value))
|
||||
if adminPassword.Value != "" {
|
||||
conf.Token = utils.GetMD5Encode(fmt.Sprintf("https://github.com/Xhofe/alist-%s", adminPassword.Value))
|
||||
} else {
|
||||
conf.Token = ""
|
||||
}
|
||||
}
|
||||
// load settings
|
||||
for _, key := range conf.LoadSettings {
|
||||
|
Loading…
x
Reference in New Issue
Block a user