Skip to content

Commit

Permalink
fix: random password of webdav guest user
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 13, 2022
1 parent cc74eff commit 0b3c5f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bootstrap/setting.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package bootstrap

import (
"strings"

"github.com/Xhofe/alist/conf"
"github.com/Xhofe/alist/model"
"github.com/Xhofe/alist/utils"
log "github.com/sirupsen/logrus"
"gorm.io/gorm"
"strings"
)

func InitSettings() {
Expand Down Expand Up @@ -235,7 +236,7 @@ func InitSettings() {
},
{
Key: "Visitor WebDAV password",
Value: "guest",
Value: utils.RandomStr(8),
Description: "Visitor WebDAV password",
Type: "string",
Access: model.PRIVATE,
Expand Down

0 comments on commit 0b3c5f3

Please sign in to comment.