Remove extra bottom margin below error msg on client login

This commit is contained in:
johnnyq 2023-08-20 15:43:39 -04:00
parent 880e1be08c
commit 1ed4eeaafc
2 changed files with 5 additions and 3 deletions

View File

@ -176,7 +176,7 @@ if (isset($_POST['login'])) {
// HTML code for the token input field // HTML code for the token input field
$token_field = " $token_field = "
<div class='input-group mb-3'> <div class='input-group mb-3'>
<input type='text' class='form-control' placeholder='2FA Token' name='current_code' required autofocus> <input type='text' class='form-control' placeholder='Enter your 2FA code' name='current_code' required autofocus>
<div class='input-group-append'> <div class='input-group-append'>
<div class='input-group-text'> <div class='input-group-text'>
<span class='fas fa-key'></span> <span class='fas fa-key'></span>
@ -213,7 +213,7 @@ if (isset($_POST['login'])) {
// HTML feedback for incorrect 2FA code // HTML feedback for incorrect 2FA code
$response = " $response = "
<div class='alert alert-warning'> <div class='alert alert-warning'>
Please Enter 2FA Key! Please Enter 2FA Code!
<button class='close' data-dismiss='alert'>&times;</button> <button class='close' data-dismiss='alert'>&times;</button>
</div>"; </div>";
} }

View File

@ -116,9 +116,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])) {
<?php <?php
echo $_SESSION['login_message']; echo $_SESSION['login_message'];
unset($_SESSION['login_message']); unset($_SESSION['login_message']);
?>
</p>
<?php
} }
?> ?>
</p>
<form method="post"> <form method="post">
<div class="input-group mb-3"> <div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Registered Client Email" name="email" required autofocus> <input type="text" class="form-control" placeholder="Registered Client Email" name="email" required autofocus>