diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-05-12 14:06:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 14:06:20 +0200 |
commit | 12fe83cd432db16d379abacf5d8f318b98dce5a3 (patch) | |
tree | f64bda6958d46544a3696412a43a1882503f09a4 /lib | |
parent | 6374c329e379ae4de9ef057f92e8076296c0d2b1 (diff) | |
parent | f4ac9ffa2c5c50eba6298d3ae699b4aa49f8cf82 (diff) | |
download | nextcloud-server-12fe83cd432db16d379abacf5d8f318b98dce5a3.tar.gz nextcloud-server-12fe83cd432db16d379abacf5d8f318b98dce5a3.zip |
Merge pull request #20858 from nextcloud/fix/20289/remember_webauth_names
Remember the webauthn name of devices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/WebAuthn/CredentialRepository.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Authentication/WebAuthn/CredentialRepository.php b/lib/private/Authentication/WebAuthn/CredentialRepository.php index f4ff950e17b..f75b4b5ae46 100644 --- a/lib/private/Authentication/WebAuthn/CredentialRepository.php +++ b/lib/private/Authentication/WebAuthn/CredentialRepository.php @@ -71,7 +71,9 @@ class CredentialRepository implements PublicKeyCredentialSourceRepository { } catch (IMapperException $e) { } + $defaultName = false; if ($name === null) { + $defaultName = true; $name = 'default'; } @@ -79,7 +81,7 @@ class CredentialRepository implements PublicKeyCredentialSourceRepository { if ($oldEntity) { $entity->setId($oldEntity->getId()); - if ($name === null) { + if ($defaultName) { $entity->setName($oldEntity->getName()); } } |