2021-08-22 14:15:58 +02:00
|
|
|
@extends('layouts.simple')
|
2021-06-29 23:06:49 +02:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
|
|
|
|
<div class="container very-small py-xl">
|
|
|
|
<div class="card content-wrap auto-height">
|
2021-08-08 15:24:44 +02: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 23:06:49 +02:00
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<div class="block inline">
|
|
|
|
{!! $svg !!}
|
|
|
|
</div>
|
2021-09-01 21:58:19 +02:00
|
|
|
<div class="code-base small text-muted px-s py-xs my-xs" style="overflow-x: scroll; white-space: nowrap;">
|
|
|
|
{{ $url }}
|
|
|
|
</div>
|
2021-06-29 23:06:49 +02:00
|
|
|
</div>
|
|
|
|
|
2021-08-08 15:24:44 +02: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 23:02:25 +02:00
|
|
|
<form action="{{ url('/mfa/totp/confirm') }}" method="POST">
|
2021-06-29 23:06:49 +02:00
|
|
|
{{ csrf_field() }}
|
|
|
|
<input type="text"
|
|
|
|
name="code"
|
|
|
|
aria-labelledby="totp-verify-input-details"
|
2021-08-08 15:24:44 +02:00
|
|
|
placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}"
|
2021-06-29 23:06:49 +02: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 21:53:33 +02:00
|
|
|
<a href="{{ url('/mfa/setup') }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2021-08-08 15:24:44 +02:00
|
|
|
<button class="button">{{ trans('auth.mfa_gen_confirm_and_enable') }}</button>
|
2021-06-29 23:06:49 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|