Merge pull request 'Add logging for SSO user creation' (#56) from fix/sso-rate-logging into main

Reviewed-on: https://git.ts.mattnite.net/mattnite/forgejo-tickets/pulls/56
This commit is contained in:
Matthew Knight 2026-02-18 00:35:54 +00:00
commit 3884124a3d
1 changed files with 4 additions and 0 deletions

View File

@ -98,7 +98,11 @@ func (h *SSOHandler) HandleSSO(c *gin.Context) {
c.String(http.StatusInternalServerError, "failed to create user") c.String(http.StatusInternalServerError, "failed to create user")
return return
} }
} else {
log.Info().Str("email", email).Str("name", name).Str("repo", slug).Msg("SSO: created new user")
} }
} else {
log.Info().Str("email", email).Str("repo", slug).Msg("SSO: existing user logged in")
} }
// Update existing user if needed // Update existing user if needed