mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-16 16:13:20 +01:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
@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()
|
|
->forceValue('')
|
|
->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
|