1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01: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">
<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">

View File

@ -20,6 +20,28 @@ h1, h2, h3, h4, h5, h6,
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.login-box, .register-box {
width: 400px;
margin: 4% auto;
@media screen and (max-width: @screen-xs-max) {
width: ~"calc(100% - 20px)";
margin: 20px auto;
}
.login-box-msg, .register-box-msg {
padding: 0 0 20px 0;
}
.checkbox {
margin: 0;
}
}
.login-logo, .register-logo {
margin-bottom: 20px;
}
.box-body > .table-responsive {
> .table {
margin-bottom: 0;