]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix auth provider
authorJoas Schilling <coding@schilljs.com>
Mon, 24 Jul 2017 09:18:46 +0000 (11:18 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 3 Aug 2017 14:40:17 +0000 (16:40 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Authentication/Token/DefaultTokenMapper.php

index 2038bb5a13513b4d1f4a6c7f4ccb61bdccc865e8..00e367801e869e7aa883d291f76fcd0417a280fc 100644 (file)
@@ -157,7 +157,7 @@ class DefaultTokenMapper extends Mapper {
        public function deleteByName($name) {
                $qb = $this->db->getQueryBuilder();
                $qb->delete('authtoken')
-                       ->where($qb->expr()->eq('name', $qb->createNamedParameter($name, IQueryBuilder::PARAM_LOB), IQueryBuilder::PARAM_LOB));
+                       ->where($qb->expr()->eq('name', $qb->createNamedParameter($name), IQueryBuilder::PARAM_STR));
                $qb->execute();
        }