1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-19 04:40:28 +01:00
vaultwarden/web-vault/app/settings/views/settingsTwoStepRecover.html

49 Zeilen
2,2 KiB
HTML

2018-02-10 01:00:55 +01:00
<div class="modal-header">
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">
<i class="fa fa-key"></i> Two-step Login <small>recovery code</small>
</h4>
</div>
<form name="authTwoStepForm" ng-submit="authTwoStepForm.$valid && auth(authModel)" api-form="authPromise"
ng-if="!authed">
<div class="modal-body">
<p>Enter your master password to view your recovery code.</p>
<div class="callout callout-danger validation-errors" ng-show="authTwoStepForm.$errors">
<h4>Errors have occurred</h4>
<ul>
<li ng-repeat="e in authTwoStepForm.$errors">{{e}}</li>
</ul>
</div>
<div class="form-group" show-errors>
<label for="masterPassword">Master Password</label>
<input type="password" id="masterPassword" name="MasterPasswordHash" ng-model="authModel.masterPassword"
class="form-control" required api-field />
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="authTwoStepForm.$loading">
<i class="fa fa-refresh fa-spin loading-icon" ng-show="authTwoStepForm.$loading"></i>Continue
</button>
<button type="button" class="btn btn-default btn-flat" ng-click="close()">Close</button>
</div>
</form>
<div ng-if="authed">
<div class="modal-body text-center">
<div ng-if="code">
<p>Your two-step login recovery code:</p>
<p class="lead"><code class="text-lg">{{code}}</code></p>
</div>
<div ng-if="!code">
You have not enabled any two-step login providers yet. After you have enabled a two-step login provider you can
check back here for your recovery code.
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary btn-flat" ng-if="code" ng-click="print()">
<i class="fa fa-print"></i>
Print Code
</button>
<button type="button" class="btn btn-default btn-flat" ng-click="close()">Close</button>
</div>
</div>