mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 05:36:00 +00:00
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:
parent
876bc10d4d
commit
0d740ca681
@ -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'))
|
||||||
@ -14,4 +15,4 @@
|
|||||||
<div class="mt-s text-right">
|
<div class="mt-s text-right">
|
||||||
<button class="button">{{ trans('common.confirm') }}</button>
|
<button class="button">{{ trans('common.confirm') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user