mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
show redacted email
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user