2012-03-29 20:16:41 +04:00
|
|
|
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
|
2013-11-26 02:49:05 +04:00
|
|
|
<form method="post" name="login">
|
2013-01-14 23:30:28 +04:00
|
|
|
<fieldset>
|
|
|
|
<?php if (!empty($_['redirect_url'])) {
|
2013-02-28 01:55:39 +04:00
|
|
|
print_unescaped('<input type="hidden" name="redirect_url" value="' . OC_Util::sanitizeHTML($_['redirect_url']) . '" />');
|
2013-01-14 23:30:28 +04:00
|
|
|
} ?>
|
2013-04-17 19:16:15 +04:00
|
|
|
<?php if (isset($_['invalidcookie']) && ($_['invalidcookie'])): ?>
|
|
|
|
<div class="warning">
|
|
|
|
<?php p($l->t('Automatic logon rejected!')); ?><br>
|
|
|
|
<small><?php p($l->t('If you did not change your password recently, your account may be compromised!')); ?></small>
|
|
|
|
<br>
|
|
|
|
<small><?php p($l->t('Please change your password to secure your account again.')); ?></small>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2013-10-02 03:02:46 +04:00
|
|
|
<?php if (isset($_['apacheauthfailed']) && ($_['apacheauthfailed'])): ?>
|
|
|
|
<div class="warning">
|
|
|
|
<?php p($l->t('Server side authentication failed!')); ?><br>
|
|
|
|
<small><?php p($l->t('Please contact your administrator.')); ?></small>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2013-11-27 20:01:21 +04:00
|
|
|
<p id="message" class="hidden">
|
2013-11-28 02:07:19 +04:00
|
|
|
<img class="float-spinner" src="<?php p(\OCP\Util::imagePath('core', 'loading-dark.gif'));?>"/>
|
2013-11-28 01:36:47 +04:00
|
|
|
<span id="messageText"></span>
|
2013-11-29 00:36:43 +04:00
|
|
|
<!-- the following div ensures that the spinner is always inside the #message div -->
|
|
|
|
<div style="clear: both;"></div>
|
2013-11-26 02:49:05 +04:00
|
|
|
</p>
|
2013-01-14 23:30:28 +04:00
|
|
|
<p class="infield grouptop">
|
2013-03-05 01:11:57 +04:00
|
|
|
<input type="text" name="user" id="user" placeholder=""
|
2014-02-18 13:58:00 +04:00
|
|
|
value="<?php p($_['username']); ?>"
|
|
|
|
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
|
|
|
autocomplete="on" autocapitalize="off" autocorrect="off" required />
|
2013-02-28 01:55:39 +04:00
|
|
|
<label for="user" class="infield"><?php p($l->t('Username')); ?></label>
|
|
|
|
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/>
|
2013-01-14 23:30:28 +04:00
|
|
|
</p>
|
2012-12-20 14:10:45 +04:00
|
|
|
|
2013-01-14 23:30:28 +04:00
|
|
|
<p class="infield groupbottom">
|
2013-08-28 15:58:49 +04:00
|
|
|
<input type="password" name="password" id="password" value="" placeholder=""
|
2014-02-18 13:58:00 +04:00
|
|
|
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
|
|
|
autocomplete="on" autocapitalize="off" autocorrect="off" required />
|
2013-02-28 01:55:39 +04:00
|
|
|
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
|
|
|
<img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
|
2013-01-14 23:30:28 +04:00
|
|
|
</p>
|
2013-04-17 19:16:15 +04:00
|
|
|
|
|
|
|
<?php if (isset($_['invalidpassword']) && ($_['invalidpassword'])): ?>
|
|
|
|
<a class="warning" href="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_index')) ?>">
|
|
|
|
<?php p($l->t('Lost your password?')); ?>
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
2013-09-24 20:01:34 +04:00
|
|
|
<?php if ($_['rememberLoginAllowed'] === true) : ?>
|
2014-01-21 20:02:59 +04:00
|
|
|
<input type="checkbox" name="remember_login" value="1" id="remember_login" />
|
2013-07-24 12:01:56 +04:00
|
|
|
<label for="remember_login"><?php p($l->t('remember')); ?></label>
|
2013-09-24 15:08:55 +04:00
|
|
|
<?php endif; ?>
|
2013-01-14 23:30:28 +04:00
|
|
|
<input type="hidden" name="timezone-offset" id="timezone-offset"/>
|
2014-05-14 19:00:15 +04:00
|
|
|
<input type="submit" id="submit" class="login primary" value="<?php p($l->t('Log in')); ?>" disabled="disabled"/>
|
2013-01-14 23:30:28 +04:00
|
|
|
</fieldset>
|
2011-08-08 19:57:45 +04:00
|
|
|
</form>
|
2013-01-29 20:28:08 +04:00
|
|
|
<?php if (!empty($_['alt_login'])) { ?>
|
2013-02-06 18:15:20 +04:00
|
|
|
<form id="alternative-logins">
|
2013-01-29 20:28:08 +04:00
|
|
|
<fieldset>
|
2013-02-28 01:55:39 +04:00
|
|
|
<legend><?php p($l->t('Alternative Logins')) ?></legend>
|
2013-01-29 20:28:08 +04:00
|
|
|
<ul>
|
2013-02-06 21:19:26 +04:00
|
|
|
<?php foreach($_['alt_login'] as $login): ?>
|
2013-02-28 01:55:39 +04:00
|
|
|
<li><a class="button" href="<?php print_unescaped($login['href']); ?>" ><?php p($login['name']); ?></a></li>
|
2013-02-06 21:19:26 +04:00
|
|
|
<?php endforeach; ?>
|
2013-01-29 20:28:08 +04:00
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
OCP\Util::addscript('core', 'visitortimezone');
|
2012-12-20 14:10:45 +04:00
|
|
|
|