Skip to content

Commit

Permalink
Merge pull request #3813 from Roardom/auto-submit-2fa
Browse files Browse the repository at this point in the history
(Add) Auto submit 2fa code when 6 digits are entered
  • Loading branch information
HDVinnie committed May 7, 2024
2 parents 3b550fa + a8414eb commit 42136ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/views/auth/two-factor-challenge.blade.php
Expand Up @@ -86,6 +86,11 @@ class="auth-form__text-input"
x-bind:required="!recovery"
type="tel"
value="{{ old('code') }}"
x-on:input="
if ($el.value.length === 6) {
$el.form.submit();
}
"
x-ref="code"
/>
</p>
Expand Down

0 comments on commit 42136ed

Please sign in to comment.