diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-08 09:05:16 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-08 09:05:16 +0200 |
commit | 41a4fa97b8dca0b64c4e0dcb99be201a7ac69c6f (patch) | |
tree | 5754c56c8b33ddb140367d6051826fb26960a2ac /core/templates/login.php | |
parent | 3e8ae8636cad91877c727c7b1ea77436816e7c3d (diff) | |
download | nextcloud-server-41a4fa97b8dca0b64c4e0dcb99be201a7ac69c6f.tar.gz nextcloud-server-41a4fa97b8dca0b64c4e0dcb99be201a7ac69c6f.zip |
HTML5 form field placeholders
Diffstat (limited to 'core/templates/login.php')
-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" /> |