Skip to content

Commit

Permalink
Fix MFA input field pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Sep 20, 2024
1 parent abbbf93 commit a1614c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/auth/LoginForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
required
bind:value="{email}"
icon="{Mail}"
autocomplete="email"
/>

<PasswordInput
Expand Down Expand Up @@ -317,9 +318,11 @@
placeholder="Enter code"
id="mfaToken"
name="mfaToken"
pattern="[0-9]{6}"
required
icon="{Shield}"
inputmode="numeric"
pattern="[0-9]*"
autocomplete="one-time-code"
/>
</div>

Expand Down
1 change: 1 addition & 0 deletions ui/src/components/user/UserRegisterForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
required
disabled="{wasInvited}"
icon="{Mail}"
autocomplete="email"
/>
</div>

Expand Down

0 comments on commit a1614c6

Please sign in to comment.