summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-05 00:08:23 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-05-18 20:49:05 +0200
commit1470ec95ca1deb3e38be633e7a4a74303fbaa64b (patch)
treebe92cf93736672bf9aa39378bc0843524187511d /apps/oauth2/lib
parent4d96cd3df7e092aa32e1212e26aaad614ecbd54e (diff)
downloadnextcloud-server-1470ec95ca1deb3e38be633e7a4a74303fbaa64b.tar.gz
nextcloud-server-1470ec95ca1deb3e38be633e7a4a74303fbaa64b.zip
Fetch signle row
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/oauth2/lib')
-rw-r--r--apps/oauth2/lib/Db/AccessTokenMapper.php2
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);
}