]> BookStack Code Mirror - bookstack/blob - resources/views/mfa/verify.blade.php
Added Backup code verification logic
[bookstack] / resources / views / mfa / verify.blade.php
1 @extends('simple-layout')
2
3 @section('body')
4     <div class="container very-small py-xl">
5
6         <div class="card content-wrap auto-height">
7             <h1 class="list-heading">Verify Access</h1>
8             <p class="mb-none">
9                 Your user account requires you to confirm your identity via an additional level
10                 of verification before you're granted access.
11                 Verify using one of your configured methods to continue.
12             </p>
13
14             @if(!$method)
15                 <hr class="my-l">
16                 <h5>No Methods Configured</h5>
17                 <p class="small">
18                     No multi-factor authentication methods could be found for your account.
19                     You'll need to set up at least one method before you gain access.
20                 </p>
21                 <div>
22                     <a href="{{ url('/mfa/setup') }}" class="button outline">Configure</a>
23                 </div>
24             @endif
25
26
27             @if($method)
28                 <hr class="my-l">
29                 @include('mfa.verify.' . $method)
30             @endif
31
32             @if(count($otherMethods) > 0)
33                 <hr class="my-l">
34                 @foreach($otherMethods as $otherMethod)
35                     <div class="text-center">
36                         <a href="{{ url("/mfa/verify?method={$otherMethod}") }}">{{ trans('auth.mfa_use_' . $otherMethod) }}</a>
37                     </div>
38                 @endforeach
39             @endif
40
41         </div>
42     </div>
43 @stop