diff options
Diffstat (limited to 'apps/oauth2/lib/Db/AccessTokenMapper.php')
-rw-r--r-- | apps/oauth2/lib/Db/AccessTokenMapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/oauth2/lib/Db/AccessTokenMapper.php b/apps/oauth2/lib/Db/AccessTokenMapper.php index 9702e2c58fd..2751302522c 100644 --- a/apps/oauth2/lib/Db/AccessTokenMapper.php +++ b/apps/oauth2/lib/Db/AccessTokenMapper.php @@ -44,7 +44,7 @@ class AccessTokenMapper extends Mapper { ->from($this->tableName) ->where($qb->expr()->eq('hashed_code', $qb->createNamedParameter(hash('sha512', $code)))); $result = $qb->execute(); - $row = $result->fetchAll(); + $row = $result->fetch(); $result->closeCursor(); return AccessToken::fromRow($row); } |