From ea87980132e9b911097e9cf88f37527cdb35bc1f Mon Sep 17 00:00:00 2001 From: David Calavera Date: Mon, 2 Jan 2017 13:21:36 -0800 Subject: [PATCH] Add support for Enpass password manager. This change adds support for Enpass password manager using the compatible Chrome extension: https://chrome.google.com/webstore/detail/enpass-password-manager/kmcfomidfpdkfieipokbalgegidffkal?hl=en-US This extension requires an external application, just like 1Password. Fixes #5097 Signed-off-by: David Calavera --- app/extensions.js | 6 ++++++ .../brave/locales/en-US/preferences.properties | 1 + docs/state.md | 1 + js/about/preferences.js | 1 + js/constants/appConfig.js | 1 + js/constants/passwordManagers.js | 3 +++ js/constants/settings.js | 1 + js/settings.js | 3 +++ test/about/extensionsTest.js | 14 ++++++++++++++ test/unit/settingsTest.js | 14 +++++++++++++- 10 files changed, 44 insertions(+), 1 deletion(-) diff --git a/app/extensions.js b/app/extensions.js index 81fd9ffc6f5..2da8e180ea8 100644 --- a/app/extensions.js +++ b/app/extensions.js @@ -391,6 +391,12 @@ module.exports.init = () => { disableExtension(extensionIds[passwordManagers.LAST_PASS]) } + if (activePasswordManager === passwordManagers.ENPASS) { + registerComponent(extensionIds[passwordManagers.ENPASS]) + } else { + disableExtension(extensionIds[passwordManagers.ENPASS]) + } + if (getSetting(settings.POCKET_ENABLED)) { registerComponent(config.PocketExtensionId) } else { diff --git a/app/extensions/brave/locales/en-US/preferences.properties b/app/extensions/brave/locales/en-US/preferences.properties index 2bc73b82ddb..987738fc78d 100644 --- a/app/extensions/brave/locales/en-US/preferences.properties +++ b/app/extensions/brave/locales/en-US/preferences.properties @@ -182,6 +182,7 @@ builtInPasswordManager=Brave Built-In onePassword=1Password® (requires application) dashlane=Dashlane® (requires application) lastPass=LastPass® +enpass=Enpass® (requires application) doNotManageMyPasswords=Don't manage my passwords usePDFJS=Enable HTML5 PDF reader (requires browser restart) enableFlash=Enable Adobe Flash support diff --git a/docs/state.md b/docs/state.md index 1f1dee47fee..105fa77688b 100644 --- a/docs/state.md +++ b/docs/state.md @@ -213,6 +213,7 @@ AppStore 'security.passwords.manager-enabled': boolean, // whether to use default password manager 'security.passwords.one-password-enabled': boolean, // true if the 1Password extension should be enabled 'security.passwords.dashlane-enabled': boolean, // true if the Dashlane extension should be enabled + 'security.passwords.enpass-enabled': boolean, // true if the Enpass extension should be enabled 'bookmarks.toolbar.show': boolean, // true if the bookmakrs toolbar should be shown 'bookmarks.toolbar.showFavicon': boolean, // true if bookmark favicons should be shown on the bookmarks toolbar 'bookmarks.toolbar.showOnlyFavicon': boolean, // true if only favicons should be shown on the bookmarks toolbar diff --git a/js/about/preferences.js b/js/about/preferences.js index e852497d302..bcd83d9bc84 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -1652,6 +1652,7 @@ class SecurityTab extends ImmutableComponent {