From 1d1b9706ce10e601ff856a644e42ba1d525beb20 Mon Sep 17 00:00:00 2001
From: Kyle Spearrin
Date: Sat, 24 Jun 2017 11:55:39 -0400
Subject: [PATCH] show redacted email
---
src/app/accounts/accountsLoginController.js | 4 +++-
src/app/accounts/views/accountsLoginTwoFactor.html | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/accounts/accountsLoginController.js b/src/app/accounts/accountsLoginController.js
index 7402be22c33..62e03187abd 100644
--- a/src/app/accounts/accountsLoginController.js
+++ b/src/app/accounts/accountsLoginController.js
@@ -124,7 +124,7 @@ angular
masterPasswordHash: hash
}, function () {
if (doToast) {
- toastr.success('Verification email sent.');
+ toastr.success('Verification email sent to ' + $scope.twoFactorEmail + '.');
}
}, function () {
toastr.error('Could not send verification email.');
@@ -160,6 +160,8 @@ angular
initU2f(challenges);
}
else if ($scope.twoFactorProvider === constants.twoFactorProvider.email) {
+ var params = $scope.twoFactorProviders[constants.twoFactorProvider.email];
+ $scope.twoFactorEmail = params.Email;
if (Object.keys($scope.twoFactorProviders).length > 1) {
$scope.sendEmail(false);
}
diff --git a/src/app/accounts/views/accountsLoginTwoFactor.html b/src/app/accounts/views/accountsLoginTwoFactor.html
index 0911f90addb..98b1c0a1f20 100644
--- a/src/app/accounts/views/accountsLoginTwoFactor.html
+++ b/src/app/accounts/views/accountsLoginTwoFactor.html
@@ -5,7 +5,7 @@
- Enter the 6 digit verification code that was just now emailed to you.
+ Enter the 6 digit verification code that was emailed to {{twoFactorEmail}}.
Didn't get the email?