summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-20 11:34:33 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-20 11:34:33 -1000
commit08bbcf18b1207153983261652b4a43a9b36f386c (patch)
treee6665608c7c8a87d6c789cf8b4c56d466df6bb8b /go.mod
parent07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 (diff)
Add session-based authentication
Implement secure authentication using scs session manager with SQLite backing store and bcrypt password hashing. - Add users and sessions tables (migration 004) - Create internal/auth package with Service, Middleware, and Handlers - Protect all routes except /login, /logout, /static/* - Add login page template and logout button to dashboard - Default credentials: admin/changeme (configurable via env vars) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod8
1 files changed, 7 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index c3cda88..055dc8f 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module task-dashboard
-go 1.21
+go 1.24.0
require (
github.com/go-chi/chi/v5 v5.2.3
@@ -8,3 +8,9 @@ require (
)
require github.com/joho/godotenv v1.5.1
+
+require (
+ github.com/alexedwards/scs/sqlite3store v0.0.0-20251002162104-209de6e426de // indirect
+ github.com/alexedwards/scs/v2 v2.9.0 // indirect
+ golang.org/x/crypto v0.47.0 // indirect
+)