From 26c4b20fdd54d5bcb8f708642133fe392b1c1e82 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 19 Nov 2016 01:41:09 -0500 Subject: [PATCH] Added link for 2fa account recovery --- src/_locales/en/messages.json | 4 ++++ src/popup/app/accounts/accountsLoginTwoFactorController.js | 5 +++++ src/popup/app/accounts/views/accountsLoginTwoFactor.html | 3 +++ 3 files changed, 12 insertions(+) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index bffe1da200..cbf974ee1e 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -602,5 +602,9 @@ "overwritePasswordConfirmation": { "message": "Are you sure you want to overwrite the current password?", "description": "Are you sure you want to overwrite the current password?" + }, + "lost2FAApp": { + "message": "Lost authenticator app?", + "description": "Lost authenticator app?" } } diff --git a/src/popup/app/accounts/accountsLoginTwoFactorController.js b/src/popup/app/accounts/accountsLoginTwoFactorController.js index 386a143c5c..a4c952f750 100644 --- a/src/popup/app/accounts/accountsLoginTwoFactorController.js +++ b/src/popup/app/accounts/accountsLoginTwoFactorController.js @@ -21,4 +21,9 @@ $state.go('tabs.vault', { animation: 'in-slide-left', syncOnLoad: true }); }); }; + + $scope.lostApp = function () { + $analytics.eventTrack('Selected Lost 2FA App'); + chrome.tabs.create({ url: 'https://vault.bitwarden.com/#/recover' }); + }; }); diff --git a/src/popup/app/accounts/views/accountsLoginTwoFactor.html b/src/popup/app/accounts/views/accountsLoginTwoFactor.html index 519c4734ed..b304ad388c 100644 --- a/src/popup/app/accounts/views/accountsLoginTwoFactor.html +++ b/src/popup/app/accounts/views/accountsLoginTwoFactor.html @@ -24,5 +24,8 @@ +

+ {{i18n.lost2FAApp}} +