Skip to content
Snippets Groups Projects
Unverified Commit f4ac9ffa authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Remember the webauthn name of devices


Fixes #20289
we should not reset to default once we have logged in with the device.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent d7305798
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