From 43ee5255f11f8e6fcb9e99574cc2ae3f454d59d0 Mon Sep 17 00:00:00 2001 From: Sveneld Date: Thu, 14 Nov 2024 21:49:54 +0100 Subject: [PATCH] fix remember me --- src/App/Security/TokenProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Security/TokenProvider.php b/src/App/Security/TokenProvider.php index 181a80d..d8b815e 100644 --- a/src/App/Security/TokenProvider.php +++ b/src/App/Security/TokenProvider.php @@ -70,6 +70,7 @@ public function deleteTokenBySeries(string $series) $this->db->query( "DELETE FROM remember_me_tokens WHERE series='{$this->db->escape($series)}'" ); + $this->db->commit(); unset($this->tokens[$series]); } @@ -87,6 +88,7 @@ public function createNewToken(PersistentTokenInterface $token) '{$this->db->escape($token->getTokenValue())}', '{$token->getLastUsed()->format('Y-m-d H:i:s')}')" ); + $this->db->commit(); $this->tokens[$token->getSeries()] = $token; }