Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
refactor: disable arrows on numeric inputs for 2FA form (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Highjhacker authored Jul 7, 2021
1 parent a73914d commit 0d939a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/views/auth/two-factor-challenge.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class="flex flex-col px-4 py-8 mx-4 border-2 sm:px-8 rounded-xl border-theme-sec
type="text"
name="code"
:label="trans('fortify::forms.2fa_code')"
class="w-full"
class="w-full hide-number-input-arrows"
:errors="$errors"
autocomplete="one-time-code"
input-mode="numeric"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
:label="trans('fortify::pages.user-settings.one_time_password')"
:errors="$errors"
pattern="[0-9]{6}"
class="hide-number-input-arrows"
/>
</div>
</div>
Expand Down Expand Up @@ -85,6 +86,7 @@
:label="trans('fortify::pages.user-settings.one_time_password')"
:errors="$errors"
pattern="[0-9]{6}"
class="hide-number-input-arrows"
/>
</div>
</div>
Expand All @@ -99,6 +101,7 @@
:label="trans('fortify::pages.user-settings.one_time_password')"
:errors="$errors"
pattern="[0-9]{6}"
class="hide-number-input-arrows"
/>
</div>
</div>
Expand Down

0 comments on commit 0d939a3

Please sign in to comment.