Fix 'cancel' button in two-factor screen

This commit is contained in:
Brady Wetherington 2022-05-13 14:49:37 -07:00
parent d8a4509b22
commit b6284e6651

View file

@ -42,15 +42,16 @@
<button class="btn btn-lg btn-primary btn-block">{{ trans('general.submit') }}</button> <button class="btn btn-lg btn-primary btn-block">{{ trans('general.submit') }}</button>
</div> </div>
<div class="col-md-12 col-sm-12 col-xs-12 text-right" style="padding-top: 10px;"> <div class="col-md-12 col-sm-12 col-xs-12 text-right" style="padding-top: 10px;">
<a href="{{ route('logout') }}" onclick="function (event) { event.preventDefault(); document.getElementById('logout-form').submit();}"> <a href="{{ route('logout') }}" onclick="document.getElementById('logout-form').submit(); return false;">
{{ trans('general.cancel') }} {{ trans('general.cancel') }}
</a> </a>
</div>
</div>
</form>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }} {{ csrf_field() }}
</form> </form>
</div>
</div>
</form>
</div> </div>
</div> </div>