fix: auth cookie needs to be at the root path
This commit is contained in:
parent
1ca8d78c8e
commit
3dc5c72840
|
@ -120,6 +120,7 @@ func (a AccountAPI) login(jc jape.Context) {
|
|||
Value: jwt,
|
||||
Expires: time.Now().Add(24 * time.Hour),
|
||||
HttpOnly: true,
|
||||
Path: "/",
|
||||
})
|
||||
account.SendJWT(jc, jwt)
|
||||
|
||||
|
@ -220,6 +221,7 @@ func (a AccountAPI) otpValidate(jc jape.Context) {
|
|||
Value: jwt,
|
||||
Expires: time.Now().Add(24 * time.Hour),
|
||||
HttpOnly: true,
|
||||
Path: "/",
|
||||
})
|
||||
account.SendJWT(jc, jwt)
|
||||
|
||||
|
|
Loading…
Reference in New Issue