aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication
diff options
context:
space:
mode:
authorLucas Azevedo <lhs_azevedo@hotmail.com>2023-08-25 10:41:46 -0300
committerGitHub <noreply@github.com>2023-08-25 10:41:46 -0300
commitc93b1634d347b9fe343be4785a6d7b7a3757e7ec (patch)
treea9dddd34ebbf504eb6d9016daaf0c4520c9bcae0 /lib/private/Authentication
parent771a7b92cccb77a1b907a8cc0d022fb7b5103f8e (diff)
downloadnextcloud-server-c93b1634d347b9fe343be4785a6d7b7a3757e7ec.tar.gz
nextcloud-server-c93b1634d347b9fe343be4785a6d7b7a3757e7ec.zip
Fixes from static analysis
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r--lib/private/Authentication/Token/PublicKeyTokenMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenMapper.php b/lib/private/Authentication/Token/PublicKeyTokenMapper.php
index f150576a623..b04467a509a 100644
--- a/lib/private/Authentication/Token/PublicKeyTokenMapper.php
+++ b/lib/private/Authentication/Token/PublicKeyTokenMapper.php
@@ -71,11 +71,11 @@ class PublicKeyTokenMapper extends QBMapper {
public function invalidateLastUsedBefore(string $uid, int $before): int {
$qb = $this->db->getQueryBuilder();
- return $qb->delete($this->tableName)
+ $qb->delete($this->tableName)
->where($qb->expr()->eq('uid', $qb->createNamedParameter($uid)))
->andWhere($qb->expr()->lt('last_activity', $qb->createNamedParameter($before, IQueryBuilder::PARAM_INT)))
- ->andWhere($qb->expr()->eq('version', $qb->createNamedParameter(PublicKeyToken::VERSION, IQueryBuilder::PARAM_INT)))
- ->executeStatement();
+ ->andWhere($qb->expr()->eq('version', $qb->createNamedParameter(PublicKeyToken::VERSION, IQueryBuilder::PARAM_INT)));
+ return $query->executeStatement();
}
/**