mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 18:04:33 +08:00
Added TOTP verification upon access
This commit is contained in:
@ -19,24 +19,15 @@
|
||||
You'll need to set up at least one method before you gain access.
|
||||
</p>
|
||||
<div>
|
||||
<a href="{{ url('/mfa/verify/totp') }}" class="button outline">Configure</a>
|
||||
<a href="{{ url('/mfa/setup') }}" class="button outline">Configure</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="setting-list">
|
||||
<div class="grid half gap-xl">
|
||||
<div>
|
||||
<div class="setting-list-label">METHOD A</div>
|
||||
<p class="small">
|
||||
...
|
||||
</p>
|
||||
</div>
|
||||
<div class="pt-m">
|
||||
<a href="{{ url('/mfa/verify/totp') }}" class="button outline">BUTTON</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@if($method)
|
||||
<hr class="my-l">
|
||||
@include('mfa.verify.' . $method)
|
||||
@endif
|
||||
|
||||
@if(count($otherMethods) > 0)
|
||||
<hr class="my-l">
|
||||
|
20
resources/views/mfa/verify/totp.blade.php
Normal file
20
resources/views/mfa/verify/totp.blade.php
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="setting-list-label">Mobile App</div>
|
||||
|
||||
<p class="small mb-m">
|
||||
Enter the code, generated using your mobile app, below:
|
||||
</p>
|
||||
|
||||
<form action="{{ url('/mfa/verify/totp') }}" method="post">
|
||||
{{ csrf_field() }}
|
||||
<input type="text"
|
||||
name="code"
|
||||
aria-labelledby="totp-verify-input-details"
|
||||
placeholder="Provide your app generated code here"
|
||||
class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}">
|
||||
@if($errors->has('code'))
|
||||
<div class="text-neg text-small px-xs">{{ $errors->first('code') }}</div>
|
||||
@endif
|
||||
<div class="mt-s text-right">
|
||||
<button class="button">{{ trans('common.confirm') }}</button>
|
||||
</div>
|
||||
</form>
|
Reference in New Issue
Block a user