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 }