From f6a447900b865909a0e039a32c76ba259998d7e2 Mon Sep 17 00:00:00 2001 From: Jason Ernst Date: Sat, 3 Oct 2026 08:11:12 -0700 Subject: [PATCH] Wizard: stop logging the login code and GitHub's token response LoginCode printed the OAuth code and the whole access-token response, which contains the admin's access token, to the server log. The second line was marked as debugging to remove. Closes #655. Co-Authored-By: Claude Fable 5.1 --- wizard/wizard.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wizard/wizard.go b/wizard/wizard.go index 57986b86..82f3e71f 100644 --- a/wizard/wizard.go +++ b/wizard/wizard.go @@ -89,7 +89,6 @@ type AccessTokenResponse struct { func (w *Wizard) LoginCode(c *gin.Context) error { code := c.Query("code") - log.Println("LOGIN CODE: " + code) if w.IsDbNil() { return errors.New("db is nil") } @@ -135,9 +134,6 @@ func (w *Wizard) LoginCode(c *gin.Context) error { return errors.New("Error requesting access token from github: " + err.Error()) } - bodyString := string(bodyBytes) - fmt.Println("post:\n", bodyString) //todo: remove - just for debugging - if resp.StatusCode != http.StatusOK { return errors.New("status was not 200: but was, " + strconv.Itoa(resp.StatusCode)) }