aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-09-30 20:27:31 +0200
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-09-30 20:27:31 +0200
commite2251a4b389418d1f294d9bdb7da48ad1e3f1307 (patch)
tree2d8aab8f1612f22b3ecf24bd8b226c55cfd339b1 /core
parent05417284046eeb6af29fb41312b9ce3cc7408e38 (diff)
downloadnextcloud-server-e2251a4b389418d1f294d9bdb7da48ad1e3f1307.tar.gz
nextcloud-server-e2251a4b389418d1f294d9bdb7da48ad1e3f1307.zip
show typed in username when log in has failed
Diffstat (limited to 'core')
-rw-r--r--core/templates/login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index 0341b913797..641e0adb6e0 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -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 >