nextcloud/core/templates/login.php

24 lines
1.2 KiB
PHP
Raw Normal View History

<div id="login">
2011-07-29 18:48:09 +04:00
<header>
2011-08-08 11:47:58 +04:00
<img src="<?php echo image_path('', 'owncloud-logo-medium-white.png'); ?>" alt="ownCloud" />
2011-07-29 18:48:09 +04:00
</header>
2011-08-08 11:47:58 +04:00
<form action="index.php" method="post">
<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:47:58 +04:00
<input type="text" name="user" id="user" placeholder="Username" value="" autocomplete="off" required autofocus />
2011-08-08 11:05:16 +04:00
<input type="password" name="password" id="password" placeholder="Password" value="" required />
<input type="checkbox" name="remember_login" id="remember_login" /><label for="remember_login"><?php echo $l->t('remember'); ?></label>
2011-07-20 17:04:14 +04:00
<?php }else{ ?>
2011-08-08 11:47:58 +04:00
<input type="text" name="user" id="user" placeholder="Username" value="<?php echo $_['username']; ?>" autocomplete="off" required >
<input type="password" name="password" id="password" placeholder="Password" value="" required autofocus />
<input type="checkbox" name="remember_login" id="remember_login" checked /><label for="remember_login"><?php echo $l->t('remember'); ?></label>
2011-07-20 17:04:14 +04:00
<?php } ?>
2011-08-08 11:47:58 +04:00
<input type="submit" id="submit" value="Log in" />
</fieldset>
</form>
</div>