Set taborder for TOTP Verification

Adding tabindex=0 means when pressing tab the focus goes right to the TOTP input field.  When using a Password Manager this makes it easier than having to hit tab 3X to get the right focus.
This commit is contained in:
Robert Accettura 2021-11-21 15:40:11 -05:00 committed by GitHub
parent 876bc10d4d
commit 0d740ca681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@
{{ csrf_field() }} {{ csrf_field() }}
<input type="text" <input type="text"
name="code" name="code"
tabindex="0"
placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}" placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}"
class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}"> class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}">
@if($errors->has('code')) @if($errors->has('code'))