Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php')
-rw-r--r--lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
index 9c436b38b5d..f15d35a84ba 100644
--- a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
+++ b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
@@ -81,4 +81,14 @@ class PublicKeyCredentialMapper extends QBMapper {
return $this->findEntity($qb);
}
+
+ public function deleteByUid(string $uid) {
+ $qb = $this->db->getQueryBuilder();
+
+ $qb->delete($this->getTableName())
+ ->where(
+ $qb->expr()->eq('uid', $qb->createNamedParameter($uid))
+ );
+ $qb->execute();
+ }
}