add username in POST login.phtml

This commit is contained in:
Andrey Kuvshinov
2023-07-07 08:54:46 +00:00
parent ec244967b4
commit 2f6a3b3792

View File

@@ -5,7 +5,7 @@
<?if (isset($error)):?> <?if (isset($error)):?>
<div id="error" style="color: red;"><?=$error?></div> <div id="error" style="color: red;"><?=$error?></div>
<?endif?> <?endif?>
<p><input name="username" type="email" autocomplete="on" placeholder="Введите электронную почту" required autofocus <?if (isset($_POST['username'])){ echo 'value="'.$_POST['username'].'"';?>/><span class="icon"><i class="far fa-envelope"></i></span></p> <p><input name="username" type="email" autocomplete="on" <?if (isset($_POST['username']) and $_POST['username'] !== ''):?>value="<?=$_POST['username']?>"<?else:?>placeholder="Введите электронную почту"<?endif?>) required autofocus /><span class="icon"><i class="far fa-envelope"></i></span></p>
<p><input name="password" type="password" minlength="5" autocomplete="current-password" placeholder="Введите пароль" required ><span class="icon"><i class="fas fa-key"></i></p> <p><input name="password" type="password" minlength="5" autocomplete="current-password" placeholder="Введите пароль" required ><span class="icon"><i class="fas fa-key"></i></p>
<p><input class="submit" type="submit" value="ВОЙТИ"></p> <p><input class="submit" type="submit" value="ВОЙТИ"></p>
</form> </form>