Merge pull request #20940 from nextcloud/backport/20858/stable19
[stable19] Remember the webauthn name of devices
This commit is contained in:
commit
c19d639231
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue