nextcloud/core/templates/login.php

22 lines
916 B
PHP
Raw Normal View History

<div id="login">
<header><img src="<?php echo image_path('', 'owncloud-logo-medium-white.png'); ?>" alt="ownCloud" /></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"])){?>
<input type="text" name="user" id="user" value="" autofocus />
<input type="password" name="password" id="password" value="" />
<input type="checkbox" name="remember_login"/> <?php echo $l->t('Remember login'); ?>
2011-07-20 17:04:14 +04:00
<?php }else{ ?>
<input type="text" name="user" id="user" value="<?php echo $_['username']; ?>">
<input type="password" name="password" id="password" value="" 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>