From 66bd5d2f7fd84eec39d69f4a8f5c435fc978804f Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 19 Mar 2026 17:14:20 +0000 Subject: Add site passwords --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index c4605c9..4e8e22a 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "crypto/rand" "fmt" "log/slog" "net/http" @@ -43,10 +42,7 @@ func main() { slog.Info("initial data directory scan complete", "sites", len(siteIndex.GetSites())) - secretKey := make([]byte, 32) - rand.Read(secretKey) - - authenticator := auth.NewAuthenticator(secretKey) + authenticator := auth.NewAuthenticator() mux := http.NewServeMux() -- cgit v1.2.3-70-g09d2