aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/WebAuthn
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Authentication/WebAuthn')
-rw-r--r--lib/private/Authentication/WebAuthn/CredentialRepository.php2
-rw-r--r--lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php1
-rw-r--r--lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php2
-rw-r--r--lib/private/Authentication/WebAuthn/Manager.php3
4 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/Authentication/WebAuthn/CredentialRepository.php b/lib/private/Authentication/WebAuthn/CredentialRepository.php
index c57af15d2e4..da552b120bf 100644
--- a/lib/private/Authentication/WebAuthn/CredentialRepository.php
+++ b/lib/private/Authentication/WebAuthn/CredentialRepository.php
@@ -68,7 +68,6 @@ class CredentialRepository implements PublicKeyCredentialSourceRepository {
try {
$oldEntity = $this->credentialMapper->findOneByCredentialId($publicKeyCredentialSource->getPublicKeyCredentialId());
} catch (IMapperException $e) {
-
}
if ($name === null) {
@@ -90,5 +89,4 @@ class CredentialRepository implements PublicKeyCredentialSourceRepository {
public function saveCredentialSource(PublicKeyCredentialSource $publicKeyCredentialSource, string $name = null): void {
$this->saveAndReturnCredentialSource($publicKeyCredentialSource, $name);
}
-
}
diff --git a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php
index 0b27c78efbd..c9ebf8ce456 100644
--- a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php
+++ b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php
@@ -88,5 +88,4 @@ class PublicKeyCredentialEntity extends Entity implements JsonSerializable {
'name' => $this->getName(),
];
}
-
}
diff --git a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
index c931ccbb3f0..a78ebee3072 100644
--- a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
+++ b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialMapper.php
@@ -31,7 +31,6 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\IDBConnection;
class PublicKeyCredentialMapper extends QBMapper {
-
public function __construct(IDBConnection $db) {
parent::__construct($db, 'webauthn', PublicKeyCredentialEntity::class);
}
@@ -82,5 +81,4 @@ class PublicKeyCredentialMapper extends QBMapper {
return $this->findEntity($qb);
}
-
}
diff --git a/lib/private/Authentication/WebAuthn/Manager.php b/lib/private/Authentication/WebAuthn/Manager.php
index e33d0e48e9b..7a2e4fc6b8a 100644
--- a/lib/private/Authentication/WebAuthn/Manager.php
+++ b/lib/private/Authentication/WebAuthn/Manager.php
@@ -170,7 +170,7 @@ class Manager {
}
public function startAuthentication(string $uid, string $serverHost): PublicKeyCredentialRequestOptions {
- // List of registered PublicKeyCredentialDescriptor classes associated to the user
+ // List of registered PublicKeyCredentialDescriptor classes associated to the user
$registeredPublicKeyCredentialDescriptors = array_map(function (PublicKeyCredentialEntity $entity) {
$credential = $entity->toPublicKeyCredentialSource();
return new PublicKeyCredentialDescriptor(
@@ -230,7 +230,6 @@ class Manager {
$request,
$uid
);
-
} catch (\Throwable $e) {
throw $e;
}