fix: auth cookie needs to be at the root path

This commit is contained in:
Derrick Hammer 2024-03-16 21:14:43 -04:00
parent 1ca8d78c8e
commit 3dc5c72840
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

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