From 7804cf9d5c546d21aebce96a804847f48b95e708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= Date: Fri, 4 Feb 2022 14:39:11 +0800 Subject: [PATCH] :lock: random webdav admin password --- bootstrap/setting.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap/setting.go b/bootstrap/setting.go index d193a0a1..a91cadf0 100644 --- a/bootstrap/setting.go +++ b/bootstrap/setting.go @@ -158,7 +158,7 @@ func InitSettings() { }, { Key: "WebDAV username", - Value: "alist_admin", + Value: "admin", Description: "WebDAV username", Type: "string", Access: model.PRIVATE, @@ -166,7 +166,7 @@ func InitSettings() { }, { Key: "WebDAV password", - Value: "alist_admin", + Value: utils.RandomStr(8), Description: "WebDAV password", Type: "string", Access: model.PRIVATE, @@ -190,7 +190,7 @@ func InitSettings() { }, { Key: "Visitor WebDAV username", - Value: "alist_visitor", + Value: "guest", Description: "Visitor WebDAV username", Type: "string", Access: model.PRIVATE, @@ -198,7 +198,7 @@ func InitSettings() { }, { Key: "Visitor WebDAV password", - Value: "alist_visitor", + Value: "guest", Description: "Visitor WebDAV password", Type: "string", Access: model.PRIVATE,