1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

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

View File

@ -136,9 +136,8 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
Password: claims["password"].(string), Password: claims["password"].(string),
Code: claims["invite"].(string), Code: claims["invite"].(string),
} }
f, success := app.newUser(req, true) _, success := app.newUser(req, true)
if !success { if !success {
f(gc)
fail() fail()
return return
} }