Skip to content

Commit

Permalink
fix remember me
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneld committed Nov 14, 2024
1 parent 80ca370 commit 43ee525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App/Security/TokenProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 43ee525

Please sign in to comment.