Add logging for SSO user creation
Fixes #22 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e3ef03ddcd
commit
b6c15e4d5c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue