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:
parent
91d3d2596e
commit
1a6727312c
3
views.go
3
views.go
@ -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…
Reference in New Issue
Block a user