show typed in username when log in has failed
This commit is contained in:
parent
0541728404
commit
e2251a4b38
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
|||
<a href="index.php?lostpassword"><?php echo $l->t('Lost your password?'); ?></a>
|
||||
<?php endif;*/ ?>
|
||||
<?php if(empty($_['username'])): ?>
|
||||
<input type="text" name="user" id="user" placeholder="<?php echo $l->t( 'Username' ); ?>" value="" autocomplete="off" required autofocus />
|
||||
<input type="password" name="password" id="password" placeholder="<?php echo $l->t( 'Password' ); ?>" value="" required />
|
||||
<input type="text" name="user" id="user" placeholder="<?php echo $l->t( 'Username' ); ?>" value="<?php echo !empty($_POST['user'])?$_POST['user'].'"':'" autofocus'; ?> autocomplete="off" required />
|
||||
<input type="password" name="password" id="password" placeholder="<?php echo $l->t( 'Password' ); ?>" value="" required <?php echo !empty($_POST['user'])?'autofocus':''; ?> />
|
||||
<input type="checkbox" name="remember_login" value="1" id="remember_login" /><label for="remember_login"><?php echo $l->t('remember'); ?></label>
|
||||
<?php else: ?>
|
||||
<input type="text" name="user" id="user" placeholder="<?php echo $l->t( 'Username' ); ?>" value="<?php echo $_['username']; ?>" autocomplete="off" required >
|
||||
|
|
Loading…
Reference in a new issue