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:
commit
3884124a3d
|
|
@ -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