diff options
-rw-r--r-- | core/templates/login.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index c3095047f48..3872e48d11c 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -10,12 +10,12 @@ <?php echo $l->t( 'Login failed!' ); ?> <?php endif; ?> <?php if(empty($_["username"])){?> - <input type="text" name="user" id="user" value="" autofocus /> - <input type="password" name="password" id="password" value="" /> + <input type="text" name="user" id="user" placeholder="Username" value="" required autofocus /> + <input type="password" name="password" id="password" placeholder="Password" value="" required /> <input type="checkbox" name="remember_login"/> <?php echo $l->t('Remember login'); ?> <?php }else{ ?> - <input type="text" name="user" id="user" value="<?php echo $_['username']; ?>"> - <input type="password" name="password" id="password" value="" autofocus /> + <input type="text" name="user" id="user" placeholder="Username" value="<?php echo $_['username']; ?>" required > + <input type="password" name="password" id="password" value="" placeholder="Password" required autofocus /> <input type="checkbox" name="remember_login" checked /> <?php echo $l->t('Remember login'); ?> <?php } ?> <input type="submit" value="Log in" /> |