Skip to content
Snippets Groups Projects
Unverified Commit 12fe83cd authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #20858 from nextcloud/fix/20289/remember_webauth_names

Remember the webauthn name of devices
parents 6374c329 f4ac9ffa
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment