Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Use displayname override for credential title instead of passkey displayname (#520)
Leendert de Borst3d684e59ea79
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/passkeys/PasskeyCreate.tsx b/apps/browser-extension/src/entrypoints/popup/pages/passkeys/PasskeyCreate.tsxindex 26049e50f..7277dd3fe 100644--- a/apps/browser-extension/src/entrypoints/popup/pages/passkeys/PasskeyCreate.tsx+++ b/apps/browser-extension/src/entrypoints/popup/pages/passkeys/PasskeyCreate.tsx@@ -262,11 +262,11 @@ const PasskeyCreate: React.FC = () => {// Replace existing passkey: update the credential and passkeyconst existingPasskey = dbContext.sqliteClient!.getPasskeyById(selectedPasskeyToReplace);if (existingPasskey) {- // Update the parent credential with new favicon (only if we successfully fetched one)+ // Update the parent credential with new favicon and user-provided display nameawait dbContext.sqliteClient!.updateCredentialById({Id: existingPasskey.CredentialId,- ServiceName: request.publicKey.rp.name || request.origin,+ ServiceName: displayName,ServiceUrl: request.origin,Username: request.publicKey.user.name,Password: '',@@ -309,7 +309,7 @@ const PasskeyCreate: React.FC = () => {UserHandle: userHandleBytes,PublicKey: JSON.stringify(stored.publicKey),PrivateKey: JSON.stringify(stored.privateKey),- DisplayName: displayName,+ DisplayName: request.publicKey.user.displayName || request.publicKey.user.name || '',PrfKey: stored.prfSecret ? PasskeyHelper.base64urlToBytes(stored.prfSecret) : undefined,AdditionalData: null});@@ -319,7 +319,7 @@ const PasskeyCreate: React.FC = () => {const credentialId = await dbContext.sqliteClient!.createCredential({Id: '',- ServiceName: request.publicKey.rp.name || request.origin,+ ServiceName: displayName,ServiceUrl: request.origin,Username: request.publicKey.user.name,Password: '',@@ -359,7 +359,7 @@ const PasskeyCreate: React.FC = () => {UserHandle: userHandleBytes,PublicKey: JSON.stringify(stored.publicKey),PrivateKey: JSON.stringify(stored.privateKey),- DisplayName: displayName,+ DisplayName: request.publicKey.user.displayName || request.publicKey.user.name || '',PrfKey: stored.prfSecret ? PasskeyHelper.base64urlToBytes(stored.prfSecret) : undefined,AdditionalData: null});