From 1a6727312ca53db95fb3e1d90374939540fafea0 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 11 Feb 2021 14:04:15 +0000 Subject: [PATCH] dont override header on email confirmation fail --- views.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/views.go b/views.go index d1ab204..2633152 100644 --- a/views.go +++ b/views.go @@ -136,9 +136,8 @@ func (app *appContext) InviteProxy(gc *gin.Context) { Password: claims["password"].(string), Code: claims["invite"].(string), } - f, success := app.newUser(req, true) + _, success := app.newUser(req, true) if !success { - f(gc) fail() return }