nextcloud/core/templates/login.php

26 lines
1.1 KiB
PHP
Raw Normal View History

<div id="login">
2011-07-29 18:48:09 +04:00
<header>
<div class='header'>
<img src="<?php echo image_path('', 'owncloud-logo-medium-white.png'); ?>" alt="ownCloud" />
</div>
</header>
<form action="index.php" method="post" id="login_form">
<fieldset>
<?php if($_['error']): ?>
2011-06-20 01:33:34 +04:00
<?php echo $l->t( 'Login failed!' ); ?>
<?php endif; ?>
2011-07-20 17:04:14 +04:00
<?php if(empty($_["username"])){?>
2011-08-08 11:05:16 +04:00
<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'); ?>
2011-07-20 17:04:14 +04:00
<?php }else{ ?>
2011-08-08 11:05:16 +04:00
<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'); ?>
2011-07-20 17:04:14 +04:00
<?php } ?>
<input type="submit" value="Log in" />
</fieldset>
</form>
</div>