2017-11-01 20:22:29 +01:00
|
|
|
@extends('login')
|
|
|
|
|
|
|
|
@section('form')
|
|
|
|
|
|
|
|
@include('partials.warn_session', ['redirectTo' => '/logout?reason=inactive'])
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
{!! Former::open()
|
|
|
|
->rules(['totp' => 'required'])
|
|
|
|
->addClass('form-signin') !!}
|
|
|
|
|
|
|
|
<h2 class="form-signin-heading">
|
|
|
|
{{ trans('texts.enable_two_factor') }}
|
|
|
|
</h2>
|
|
|
|
<hr class="green">
|
|
|
|
|
|
|
|
{!! Former::text('totp')
|
|
|
|
->placeholder(trans('texts.one_time_password'))
|
|
|
|
->autofocus()
|
2017-12-13 15:27:49 +01:00
|
|
|
->style('text-indent:4px')
|
2017-11-01 20:22:29 +01:00
|
|
|
->forceValue('')
|
2018-02-22 09:41:36 +01:00
|
|
|
->data_lpignore('true')
|
2017-11-01 20:22:29 +01:00
|
|
|
->raw() !!}
|
|
|
|
|
2017-12-13 15:27:49 +01:00
|
|
|
{!! 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() !!}
|
|
|
|
|
2017-11-01 20:22:29 +01:00
|
|
|
{!! Button::success(trans('texts.submit'))
|
|
|
|
->withAttributes(['id' => 'loginButton', 'class' => 'green'])
|
|
|
|
->large()->submit()->block() !!}
|
|
|
|
|
|
|
|
@if (count($errors->all()))
|
|
|
|
<br/>
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
{!! Former::close() !!}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endsection
|