]> BookStack Code Mirror - bookstack/commitdiff
Set taborder for TOTP Verification
authorRobert Accettura <redacted>
Sun, 21 Nov 2021 20:40:11 +0000 (15:40 -0500)
committerGitHub <redacted>
Sun, 21 Nov 2021 20:40:11 +0000 (15:40 -0500)
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.

resources/views/mfa/parts/verify-totp.blade.php

index 9a861fc6caf0059cd6db042f3c91b3f449467b21..c155f1bfe896a7f807b604647dcb73fd0eec6c17 100644 (file)
@@ -6,6 +6,7 @@
     {{ csrf_field() }}
     <input type="text"
            name="code"
+           tabindex="0"
            placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}"
            class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}">
     @if($errors->has('code'))
@@ -14,4 +15,4 @@
     <div class="mt-s text-right">
         <button class="button">{{ trans('common.confirm') }}</button>
     </div>
-</form>
\ No newline at end of file
+</form>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.