diff options
| author | wikiapiserver | 2026-06-25 13:10:33 +0200 |
|---|---|---|
| committer | wikiapiserver | 2026-06-25 13:10:33 +0200 |
| commit | 21fb3c12c86fe3f03531c4f323854da36fb82628 (patch) | |
| tree | 24192f9b5b9b0226516e46bdd553317c5f0eb9a0 /api/handlers.go | |
| parent | 363d4edfed8361ba3121278eb5d7f5e5779e964c (diff) | |
| download | wikiapiserver-21fb3c12c86fe3f03531c4f323854da36fb82628.tar.gz | |
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
Diffstat (limited to 'api/handlers.go')
| -rw-r--r-- | api/handlers.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |
