2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2021-06-29 17:06:49 -04:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
|
|
|
|
<div class="container very-small py-xl">
|
|
|
|
<div class="card content-wrap auto-height">
|
2021-08-08 09:24:44 -04:00
|
|
|
<h1 class="list-heading">{{ trans('auth.mfa_gen_totp_title') }}</h1>
|
|
|
|
<p>{{ trans('auth.mfa_gen_totp_desc') }}</p>
|
|
|
|
<p>{{ trans('auth.mfa_gen_totp_scan') }}</p>
|
2021-06-29 17:06:49 -04:00
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<div class="block inline">
|
|
|
|
{!! $svg !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-08-08 09:24:44 -04:00
|
|
|
<h2 class="list-heading">{{ trans('auth.mfa_gen_totp_verify_setup') }}</h2>
|
|
|
|
<p id="totp-verify-input-details" class="mb-s">{{ trans('auth.mfa_gen_totp_verify_setup_desc') }}</p>
|
2021-08-02 17:02:25 -04:00
|
|
|
<form action="{{ url('/mfa/totp/confirm') }}" method="POST">
|
2021-06-29 17:06:49 -04:00
|
|
|
{{ csrf_field() }}
|
|
|
|
<input type="text"
|
|
|
|
name="code"
|
|
|
|
aria-labelledby="totp-verify-input-details"
|
2021-08-08 09:24:44 -04:00
|
|
|
placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}"
|
2021-06-29 17:06:49 -04:00
|
|
|
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">
|
2021-07-02 15:53:33 -04:00
|
|
|
<a href="{{ url('/mfa/setup') }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2021-08-08 09:24:44 -04:00
|
|
|
<button class="button">{{ trans('auth.mfa_gen_confirm_and_enable') }}</button>
|
2021-06-29 17:06:49 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|