From f31f130c147e01c81b75c86d4d7d607e5b976c9d Mon Sep 17 00:00:00 2001 From: Up Date: Wed, 15 May 2024 06:47:06 +0200 Subject: [PATCH] also check for empty --- db/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/account.go b/db/account.go index 47f24c2..23a1a6d 100644 --- a/db/account.go +++ b/db/account.go @@ -224,7 +224,7 @@ func IsActiveSession(uuid []byte, clientSessionId string) (bool, error) { return false, err } - return storedId == clientSessionId, nil + return storedId == "" || storedId == clientSessionId, nil } func UpdateActiveSession(uuid []byte, clientSessionId string) error {