From 2b65e4ca53f6969104103a1e12dabc414d5fd5e8 Mon Sep 17 00:00:00 2001 From: lalitdeore Date: Thu, 17 Oct 2024 14:39:20 +0530 Subject: [PATCH] updated user session condition in handleopenid fucntion --- shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.go b/shared.go index 38da5aa..524946e 100755 --- a/shared.go +++ b/shared.go @@ -18970,7 +18970,7 @@ func HandleOpenId(resp http.ResponseWriter, request *http.Request) { } expiration := time.Now().Add(3600 * time.Second) - if len(user.Session) != 0 { + if len(user.Session) == 0 { log.Printf("[INFO] User does NOT have session - creating - (1)") sessionToken := uuid.NewV4().String()