1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/auth/two_factor.blade.php

51 lines
1.5 KiB
PHP
Raw Normal View History

@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')
->forceValue('')
2018-02-22 09:41:36 +01:00
->data_lpignore('true')
->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() !!}
{!! 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