Skip to content

Commit

Permalink
Update login form to use best practice
Browse files Browse the repository at this point in the history
  • Loading branch information
mveytsman committed May 22, 2024
1 parent 7dbc6bf commit 4c58784
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/bike_brigade_web/live/login_live.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
</div>

<div class="text-center ">
<.button href="https://www.bikebrigade.ca/volunteer-rider-sign-up" color={:white} size={:small}>
<.button
href="https://www.bikebrigade.ca/volunteer-rider-sign-up"
color={:white}
size={:small}
>
Sign Up!
</.button>
</div>
Expand Down Expand Up @@ -65,7 +69,14 @@
</p>
</div>
<.input type="hidden" field={{f, :phone}} />
<.input type="text" field={{f, :token_attempt}} label="Authentication Code" />
<.input
type="text"
field={{f, :token_attempt}}
label="Authentication Code"
inputmode="numeric"
autocomplete="one-time-code"
pattern="\d{6}"
/>
<:actions>
<.button type="submit" class="w-full">Sign in</.button>
</:actions>
Expand Down

0 comments on commit 4c58784

Please sign in to comment.