mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-28 03:33:37 +08:00
4597069083
Also added testing to cover as part of this in addition to adding the core backup code handling required. Also added the standardised translations for switching mfa mode and adding testing for this switching.
44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
@extends('simple-layout')
|
|
|
|
@section('body')
|
|
<div class="container very-small py-xl">
|
|
|
|
<div class="card content-wrap auto-height">
|
|
<h1 class="list-heading">Verify Access</h1>
|
|
<p class="mb-none">
|
|
Your user account requires you to confirm your identity via an additional level
|
|
of verification before you're granted access.
|
|
Verify using one of your configured methods to continue.
|
|
</p>
|
|
|
|
@if(!$method)
|
|
<hr class="my-l">
|
|
<h5>No Methods Configured</h5>
|
|
<p class="small">
|
|
No multi-factor authentication methods could be found for your account.
|
|
You'll need to set up at least one method before you gain access.
|
|
</p>
|
|
<div>
|
|
<a href="{{ url('/mfa/setup') }}" class="button outline">Configure</a>
|
|
</div>
|
|
@endif
|
|
|
|
|
|
@if($method)
|
|
<hr class="my-l">
|
|
@include('mfa.verify.' . $method)
|
|
@endif
|
|
|
|
@if(count($otherMethods) > 0)
|
|
<hr class="my-l">
|
|
@foreach($otherMethods as $otherMethod)
|
|
<div class="text-center">
|
|
<a href="{{ url("/mfa/verify?method={$otherMethod}") }}">{{ trans('auth.mfa_use_' . $otherMethod) }}</a>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
@stop
|