From f50b8f1d2e62856ef2d4cf6dc2381fa69b73696a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Z=C3=ADpek?= Date: Thu, 25 Aug 2022 08:33:39 +0200 Subject: [PATCH] Fixed issue with secure cookie --- server/services/auth_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/auth_service.go b/server/services/auth_service.go index c4b18b9..024d628 100644 --- a/server/services/auth_service.go +++ b/server/services/auth_service.go @@ -31,7 +31,7 @@ func (s *AuthService) Login(ctx *gin.Context) error { return err } - ctx.SetCookie(SESSION_ID, session.Id, int(time.Duration(time.Hour*24).Seconds()), "/", "", true, true) + ctx.SetCookie(SESSION_ID, session.Id, int(time.Duration(time.Hour*24).Seconds()), "/", "", false, true) return nil } @@ -47,7 +47,7 @@ func (s *AuthService) Logout(ctx *gin.Context) error { return err } - ctx.SetCookie(SESSION_ID, "", 0, "/", "", true, true) + ctx.SetCookie(SESSION_ID, "", 0, "/", "", false, true) return nil }