Add missing return in oidc.go

This commit is contained in:
Kristoffer Dalby 2021-11-22 17:22:47 +00:00
parent e8faff4fe2
commit 200c10e48c

View file

@ -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) {
</html>
`, claims.Email)))
return
}
log.Error().