Skip to content

Commit

Permalink
updated user session condition in handleopenid fucntion
Browse files Browse the repository at this point in the history
  • Loading branch information
LalitDeore committed Oct 17, 2024
1 parent 6e2fa03 commit 2b65e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2b65e4c

Please sign in to comment.