aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/login.php
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-01 11:08:49 +0200
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-01 11:08:49 +0200
commitc943f48547c686570dac3d678672693e7b46658e (patch)
tree55933fc7cd0a70ad6231894fde064292fd2521b2 /core/templates/login.php
parent0514a1925bb726cc23ae4b99ed85c4b5451357cc (diff)
downloadnextcloud-server-c943f48547c686570dac3d678672693e7b46658e.tar.gz
nextcloud-server-c943f48547c686570dac3d678672693e7b46658e.zip
fixed link to password recovery. removed duplicated and unused code out of index.php.
Diffstat (limited to 'core/templates/login.php')
-rw-r--r--core/templates/login.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index 6564847014b..f4ee44be4ed 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -1,17 +1,11 @@
<form action="index.php" method="post">
<fieldset>
<?php if($_['error']): ?>
- <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="<?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 >
- <input type="password" name="password" id="password" placeholder="<?php echo $l->t( 'Password' ); ?>" value="" required autofocus />
- <input type="checkbox" name="remember_login" value="1" id="remember_login" checked /><label for="remember_login"><?php echo $l->t('remember'); ?></label>
+ <a href="./lostpassword/"><?php echo $l->t('Lost your password?'); ?></a>
<?php endif; ?>
+ <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>
<input type="submit" id="submit" class="login" value="<?php echo $l->t( 'Log in' ); ?>" />
</fieldset>
</form>