1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

show redacted email

This commit is contained in:
Kyle Spearrin
2017-06-24 11:55:39 -04:00
parent 7a19d444f1
commit 1d1b9706ce
2 changed files with 4 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ angular
masterPasswordHash: hash masterPasswordHash: hash
}, function () { }, function () {
if (doToast) { if (doToast) {
toastr.success('Verification email sent.'); toastr.success('Verification email sent to ' + $scope.twoFactorEmail + '.');
} }
}, function () { }, function () {
toastr.error('Could not send verification email.'); toastr.error('Could not send verification email.');
@@ -160,6 +160,8 @@ angular
initU2f(challenges); initU2f(challenges);
} }
else if ($scope.twoFactorProvider === constants.twoFactorProvider.email) { 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) { if (Object.keys($scope.twoFactorProviders).length > 1) {
$scope.sendEmail(false); $scope.sendEmail(false);
} }

View File

@@ -5,7 +5,7 @@
</p> </p>
<div ng-if="twoFactorProvider === twoFactorProviderConstants.email" class="text-center"> <div ng-if="twoFactorProvider === twoFactorProviderConstants.email" class="text-center">
<p class="login-box-msg"> <p class="login-box-msg">
Enter the 6 digit verification code that was just now emailed to you. Enter the 6 digit verification code that was emailed to <b>{{twoFactorEmail}}</b>.
</p> </p>
<p> <p>
Didn't get the email? Didn't get the email?