dont override header on email confirmation fail

This commit is contained in:
Harvey Tindall 2021-02-11 14:04:15 +00:00
parent 91d3d2596e
commit 1a6727312c
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 2 deletions

View File

@ -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
}