Skip to content

Commit

Permalink
Removed number type on 2FA input field replaced with text and inputmo…
Browse files Browse the repository at this point in the history
…de='numeric' pattern='[0-9]*'
  • Loading branch information
johnnyq committed Sep 22, 2023
1 parent a8b3b24 commit 1ccaa93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
// HTML code for the token input field
$token_field = "
<div class='input-group mb-3'>
<input type='number' class='form-control' placeholder='Enter your 2FA code' name='current_code' required autofocus>
<input type='text' inputmode='numeric' pattern='[0-9]*' class='form-control' placeholder='Enter your 2FA code' name='current_code' required autofocus>
<div class='input-group-append'>
<div class='input-group-text'>
<span class='fas fa-key'></span>
Expand Down

0 comments on commit 1ccaa93

Please sign in to comment.