dont override header on email confirmation fail

pull/61/head
Harvey Tindall 4 years ago
parent 91d3d2596e
commit 1a6727312c
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

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

Loading…
Cancel
Save