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

Unverified Commit 804690ec authored by Akhil's avatar Akhil
Browse files

Fix subType like query

parent 5b1293f9
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ class SSOMapper {
		$qb->delete(self::CREDENTIAL_TABLE)
			->where('USER_ID = :username')
			->andWhere('TYPE = "otp"')
			->andWhere($qb->expr()->like('CREDENTIAL_DATA', '%"subType":"nextcloud_totp"%'))
			->andWhere('CREDENTIAL_DATA LIKE "%\"subType\":\"nextcloud_totp\"%"')
			->setParameter('username', $userId)
			->execute();
	}