1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

2fa cleanup

This commit is contained in:
Kyle Spearrin
2017-06-24 10:49:53 -04:00
parent 181ee74ba3
commit 73eb743f54
2 changed files with 33 additions and 9 deletions

View File

@@ -3,9 +3,17 @@
<p class="login-box-msg" ng-if="twoFactorProvider === twoFactorProviderConstants.authenticator">
Enter the 6 digit verification code from your authenticator app.
</p>
<p class="login-box-msg" ng-if="twoFactorProvider === twoFactorProviderConstants.email">
Enter the 6 digit verification code that was just now emailed to you.
</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.
</p>
<p>
Didn't get the email?
<a href="#" stop-click ng-click="sendEmail(true)" ng-if="twoFactorProvider === twoFactorProviderConstants.email">
Send it again
</a>
</p>
</div>
<form name="twoFactorForm" ng-submit="twoFactorForm.$valid && twoFactor(token)" api-form="twoFactorPromise">
<div class="callout callout-danger validation-errors" ng-show="twoFactorForm.$errors">
<h4>Errors have occurred</h4>
@@ -19,12 +27,6 @@
ng-model="token" required api-field />
<span class="fa fa-lock form-control-feedback"></span>
</div>
<p>
Didn't get the email?
<a href="#" stop-click ng-click="sendEmail(true)" ng-if="twoFactorProvider === twoFactorProviderConstants.email">
Send it again
</a>
</p>
<div class="row">
<div class="col-xs-7">
<div class="checkbox">