Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7d526b2 authored by Akhil's avatar Akhil 🙂
Browse files

Fix query to fetch secrets given a list of users

parent f88723e8
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace OCA\EcloudAccounts\Db;

use OCA\TwoFactorTOTP\Service\ITotp;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;

class TwoFactorMapper {
@@ -27,7 +28,7 @@ class TwoFactorMapper {

		if (!empty($usernames)) {
			$qb->andWhere('user_id IN (:usernames)')
				->setParameter('usernames', implode(',', $usernames));
				->setParameter('usernames', $usernames, IQueryBuilder::PARAM_STR_ARRAY);
		}

		$result = $qb->execute();