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
}, 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);
}

View File

@ -5,7 +5,7 @@
</p>
<div ng-if="twoFactorProvider === twoFactorProviderConstants.email" class="text-center">
<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>
Didn't get the email?