1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/resources/views/auth/two_factor.blade.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