From 21fb3c12c86fe3f03531c4f323854da36fb82628 Mon Sep 17 00:00:00 2001 From: wikiapiserver Date: Thu, 25 Jun 2026 13:10:33 +0200 Subject: fix: update queries for new refresh_token_created column and add error logging - INSERT and UPDATE now set both refresh_token_created and access_token_created timestamps - Register handler logs the actual error on failure --- api/handlers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api') diff --git a/api/handlers.go b/api/handlers.go index 0d23bdb..109eca3 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -3,6 +3,7 @@ package api import ( "context" "encoding/json" + "log" "net/http" "time" @@ -84,6 +85,7 @@ func (h *Handler) Register(w http.ResponseWriter, r *http.Request) { badRequest(w, "username already exists") return } + log.Printf("register error: %v", err) serverError(w, "could not create account") return } -- cgit v1.2.3