]> BookStack Code Mirror - bookstack/blob - resources/views/mfa/backup-codes-generate.blade.php
Added backup code setup flow
[bookstack] / resources / views / mfa / backup-codes-generate.blade.php
1 @extends('simple-layout')
2
3 @section('body')
4
5     <div class="container very-small py-xl">
6         <div class="card content-wrap auto-height">
7             <h1 class="list-heading">Backup Codes</h1>
8             <p>
9                 Store the below list of codes in a safe place.
10                 When accessing the system you'll be able to use one of the codes
11                 as a second authentication mechanism.
12             </p>
13
14             <div class="text-center mb-xs">
15                 <div class="text-bigger code-base p-m" style="column-count: 2">
16                     @foreach($codes as $code)
17                         {{ $code }} <br>
18                     @endforeach
19                 </div>
20             </div>
21
22             <p class="text-right">
23                 <a href="{{ $downloadUrl }}" download="backup-codes.txt" class="button outline small">Download Codes</a>
24             </p>
25
26             <p class="callout warning">
27                 Each code can only be used once
28             </p>
29
30             <form action="{{ url('/mfa/backup-codes-confirm') }}" method="POST">
31                 {{ csrf_field() }}
32                 <div class="mt-s text-right">
33                     <a href="{{ url('/mfa/setup') }}" class="button outline">{{ trans('common.cancel') }}</a>
34                     <button class="button">Confirm and Enable</button>
35                 </div>
36             </form>
37         </div>
38     </div>
39
40 @stop