2016-10-28 21:46:28 +02:00
|
|
|
<?php /** @var $l \OCP\IL10N */ ?>
|
2014-12-10 16:18:18 +01:00
|
|
|
<?php
|
|
|
|
vendor_script('jsTimezoneDetect/jstz');
|
|
|
|
script('core', [
|
|
|
|
'visitortimezone',
|
2015-08-27 21:02:00 +02:00
|
|
|
'lostpassword',
|
|
|
|
'login'
|
2014-12-10 16:18:18 +01:00
|
|
|
]);
|
|
|
|
?>
|
2014-05-04 13:56:21 +02:00
|
|
|
|
2012-03-29 18:16:41 +02:00
|
|
|
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
|
2016-04-25 14:10:55 +02:00
|
|
|
<form method="post" name="login">
|
2013-01-14 20:30:28 +01:00
|
|
|
<fieldset>
|
|
|
|
<?php if (!empty($_['redirect_url'])) {
|
2015-12-08 08:28:15 +01:00
|
|
|
print_unescaped('<input type="hidden" name="redirect_url" value="' . \OCP\Util::sanitizeHTML($_['redirect_url']) . '">');
|
2013-01-14 20:30:28 +01:00
|
|
|
} ?>
|
2013-10-02 01:02:46 +02: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; ?>
|
2015-01-22 14:13:02 +01:00
|
|
|
<?php foreach($_['messages'] as $message): ?>
|
|
|
|
<div class="warning">
|
|
|
|
<?php p($message); ?><br>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
2015-03-31 14:56:02 +02:00
|
|
|
<?php if (isset($_['internalexception']) && ($_['internalexception'])): ?>
|
|
|
|
<div class="warning">
|
2016-04-04 10:57:17 +02:00
|
|
|
<?php p($l->t('An internal error occurred.')); ?><br>
|
2015-03-31 14:56:02 +02:00
|
|
|
<small><?php p($l->t('Please try again or contact your administrator.')); ?></small>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2015-06-08 15:22:52 +02:00
|
|
|
<div id="message" class="hidden">
|
2014-11-06 12:09:48 +01:00
|
|
|
<img class="float-spinner" alt=""
|
2016-04-06 10:18:56 +02:00
|
|
|
src="<?php p(image_path('core', 'loading-dark.gif'));?>">
|
2013-11-27 22:36:47 +01:00
|
|
|
<span id="messageText"></span>
|
2013-11-28 21:36:43 +01:00
|
|
|
<!-- the following div ensures that the spinner is always inside the #message div -->
|
|
|
|
<div style="clear: both;"></div>
|
2015-06-08 15:22:52 +02:00
|
|
|
</div>
|
2016-08-01 21:29:30 +02:00
|
|
|
<p class="grouptop<?php if (!empty($_['invalidpassword'])) { ?> shake<?php } ?>">
|
2014-05-06 12:07:53 +02:00
|
|
|
<input type="text" name="user" id="user"
|
2016-05-02 14:51:01 +02:00
|
|
|
placeholder="<?php p($l->t('Username or email')); ?>"
|
2016-04-15 19:02:19 +02:00
|
|
|
value="<?php p($_['loginName']); ?>"
|
2014-05-06 12:07:53 +02:00
|
|
|
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
2016-10-11 13:58:10 +02:00
|
|
|
autocomplete="on" autocapitalize="off" autocorrect="off" required>
|
2016-05-02 14:51:01 +02:00
|
|
|
<label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
|
2013-01-14 20:30:28 +01:00
|
|
|
</p>
|
2012-12-20 11:10:45 +01:00
|
|
|
|
2016-08-01 21:29:30 +02:00
|
|
|
<p class="groupbottom<?php if (!empty($_['invalidpassword'])) { ?> shake<?php } ?>">
|
2014-05-06 12:07:53 +02:00
|
|
|
<input type="password" name="password" id="password" value=""
|
|
|
|
placeholder="<?php p($l->t('Password')); ?>"
|
|
|
|
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
2016-10-11 13:58:10 +02:00
|
|
|
autocomplete="on" autocapitalize="off" autocorrect="off" required>
|
2013-02-27 22:55:39 +01:00
|
|
|
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
2013-01-14 20:30:28 +01:00
|
|
|
</p>
|
2013-04-17 17:16:15 +02:00
|
|
|
|
2015-12-07 15:14:19 +01:00
|
|
|
<?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
|
2016-05-24 09:23:25 +02:00
|
|
|
<a id="lost-password" class="warning" href="<?php p($_['resetPasswordLink']); ?>">
|
2015-08-12 18:43:09 +02:00
|
|
|
<?php p($l->t('Wrong password. Reset it?')); ?>
|
2013-04-17 17:16:15 +02:00
|
|
|
</a>
|
2015-12-07 15:14:19 +01:00
|
|
|
<?php } else if (!empty($_['invalidpassword'])) { ?>
|
|
|
|
<p class="warning">
|
|
|
|
<?php p($l->t('Wrong password.')); ?>
|
|
|
|
</p>
|
|
|
|
<?php } ?>
|
2016-10-06 19:08:32 +02:00
|
|
|
|
2016-10-11 13:58:10 +02:00
|
|
|
<input type="submit" id="submit" class="login primary icon-confirm-white" title="" value="<?php p($l->t('Log in')); ?>" disabled="disabled" />
|
2016-10-06 19:08:32 +02:00
|
|
|
|
2016-10-11 13:58:10 +02:00
|
|
|
<div class="login-additional">
|
|
|
|
<?php if ($_['rememberLoginAllowed'] === true) : ?>
|
|
|
|
<div class="remember-login-container">
|
|
|
|
<?php if ($_['rememberLoginState'] === 0) { ?>
|
|
|
|
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white">
|
|
|
|
<?php } else { ?>
|
|
|
|
<input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked">
|
|
|
|
<?php } ?>
|
|
|
|
<label for="remember_login"><?php p($l->t('Stay logged in')); ?></label>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2015-08-26 19:00:42 +02:00
|
|
|
</div>
|
2016-10-06 16:48:10 +02:00
|
|
|
|
2016-12-08 10:45:24 +01:00
|
|
|
<input type="hidden" name="timezone_offset" id="timezone_offset"/>
|
2014-09-22 14:01:45 +02:00
|
|
|
<input type="hidden" name="timezone" id="timezone"/>
|
2015-03-17 23:57:23 +01:00
|
|
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
|
2013-01-14 20:30:28 +01:00
|
|
|
</fieldset>
|
2011-08-08 17:57:45 +02:00
|
|
|
</form>
|
2013-01-29 17:28:08 +01:00
|
|
|
<?php if (!empty($_['alt_login'])) { ?>
|
2013-02-06 15:15:20 +01:00
|
|
|
<form id="alternative-logins">
|
2013-01-29 17:28:08 +01:00
|
|
|
<fieldset>
|
2013-02-27 22:55:39 +01:00
|
|
|
<legend><?php p($l->t('Alternative Logins')) ?></legend>
|
2013-01-29 17:28:08 +01:00
|
|
|
<ul>
|
2013-02-06 18:19:26 +01:00
|
|
|
<?php foreach($_['alt_login'] as $login): ?>
|
2013-02-27 22:55:39 +01:00
|
|
|
<li><a class="button" href="<?php print_unescaped($login['href']); ?>" ><?php p($login['name']); ?></a></li>
|
2013-02-06 18:19:26 +01:00
|
|
|
<?php endforeach; ?>
|
2013-01-29 17:28:08 +01:00
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2014-12-10 16:18:18 +01:00
|
|
|
<?php }
|