Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Do not pregenerate password on credential create screen initialize (#1235)

Leendert de Borst133037dcd8c9
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/credentials/CredentialAddEdit.tsx b/apps/browser-extension/src/entrypoints/popup/pages/credentials/CredentialAddEdit.tsx
index bcf0da2df..ded576dfb 100644
--- a/apps/browser-extension/src/entrypoints/popup/pages/credentials/CredentialAddEdit.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/pages/credentials/CredentialAddEdit.tsx
@@ -237,15 +237,7 @@ const CredentialAddEdit: React.FC = () => {
setIsInitialLoading(false);
// Load persisted form values if they exist.
- loadPersistedValues().then(() => {
- // Generate default password if no persisted password exists
- if (!watch('Password')) {
- const passwordSettings = dbContext.sqliteClient!.getPasswordSettings();
- const passwordGenerator = CreatePasswordGenerator(passwordSettings);
- const defaultPassword = passwordGenerator.generateRandomPassword();
- setValue('Password', defaultPassword);
- }
- });
+ loadPersistedValues();
return;
}
@@ -278,7 +270,7 @@ const CredentialAddEdit: React.FC = () => {
console.error('Error loading credential:', err);
setIsInitialLoading(false);
}
- }, [dbContext.sqliteClient, id, navigate, setIsInitialLoading, setValue, loadPersistedValues, watch]);
+ }, [dbContext.sqliteClient, id, navigate, setIsInitialLoading, setValue, loadPersistedValues]);
/**
* Handle the delete button click.