- Set the 2FA number input field to only accept 6 characters max
- Revoke existing remember-me tokens when 2FA is re-enabled
This commit is contained in:
Marcus Hill
2024-06-09 12:57:42 +01:00
parent 51710f886c
commit 3dcd04a724
2 changed files with 4 additions and 1 deletions

View File

@@ -230,7 +230,7 @@ if (isset($_POST['login'])) {
// HTML code for the token input field
$token_field = "
<div class='input-group mb-3'>
<input type='text' inputmode='numeric' pattern='[0-9]*' class='form-control' placeholder='Enter your 2FA code' name='current_code' required autofocus>
<input type='text' inputmode='numeric' pattern='[0-9]*' maxlength='6' 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>