add username in POST login.phtml
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<?if (isset($error)):?>
|
||||
<div id="error" style="color: red;"><?=$error?></div>
|
||||
<?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 class="submit" type="submit" value="ВОЙТИ"></p>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user