From 200c10e48c19866379f096b4b322d1270d32a81d Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 22 Nov 2021 17:22:47 +0000 Subject: [PATCH] Add missing return in oidc.go --- oidc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oidc.go b/oidc.go index 8fafc89a..cdd4fc21 100644 --- a/oidc.go +++ b/oidc.go @@ -162,7 +162,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) { Msg("Failed to decode id token claims") ctx.String( http.StatusBadRequest, - fmt.Sprintf("Failed to decode id token claims"), + "Failed to decode id token claims", ) return @@ -272,6 +272,8 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) { `, claims.Email))) + + return } log.Error().