@extends('login') @section('form') @include('partials.warn_session', ['redirectTo' => '/logout?reason=inactive'])
{!! Former::open() ->rules(['totp' => 'required']) ->addClass('form-signin') !!}

{{ trans('texts.enable_two_factor') }}


{!! Former::text('totp') ->placeholder(trans('texts.one_time_password')) ->autofocus() ->style('text-indent:4px') ->forceValue('') ->raw() !!} {!! Former::select('trust') ->style('background-color:white !important') ->addOption(trans('texts.do_not_trust'), '') ->addOption(trans('texts.trust_for_30_days'), '30') ->addOption(trans('texts.trust_forever'), 'forever') ->raw() !!} {!! Button::success(trans('texts.submit')) ->withAttributes(['id' => 'loginButton', 'class' => 'green']) ->large()->submit()->block() !!} @if (count($errors->all()))
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif {!! Former::close() !!}
    @endsection