aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2026-03-19 17:14:20 +0000
committerLeonardo Bishop <me@leonardobishop.net>2026-03-19 17:14:20 +0000
commit66bd5d2f7fd84eec39d69f4a8f5c435fc978804f (patch)
tree20bfd8637cce28750b4a66bdd9aa47cb9831308b /main.go
parent60cd7875c2c9ee595012078a3ba8f13b71c73dc9 (diff)
Add site passwordsHEADmaster
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
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()