diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-01-14 20:30:28 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-01-16 18:09:16 +0100 |
commit | a8f963d9cf5b243cae497450af78c20cbc367b4b (patch) | |
tree | fd23acd48a702fe247e81c25e1f98a6f214a30ae /core | |
parent | cb0fd30458c29db7667582b7c182b4d530366634 (diff) | |
download | nextcloud-server-a8f963d9cf5b243cae497450af78c20cbc367b4b.tar.gz nextcloud-server-a8f963d9cf5b243cae497450af78c20cbc367b4b.zip |
Spaces to tabs
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/login.php | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 10093baabf7..43e45997803 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,50 +1,50 @@ <!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]--> <form method="post"> - <fieldset> - <?php if (!empty($_['redirect_url'])) { - echo '<input type="hidden" name="redirect_url" value="' . $_['redirect_url'] . '" />'; - } ?> - <ul> - <?php if (isset($_['invalidcookie']) && ($_['invalidcookie'])): ?> - <li class="errors"> - <?php echo $l->t('Automatic logon rejected!'); ?><br> - <small><?php echo $l->t('If you did not change your password recently, your account may be compromised!'); ?></small> - <br> - <small><?php echo $l->t('Please change your password to secure your account again.'); ?></small> - </li> - <?php endif; ?> - <?php if (isset($_['invalidpassword']) && ($_['invalidpassword'])): ?> - <a href="<?php echo OC_Helper::linkToRoute('core_lostpassword_index') ?>"> - <li class="errors"> - <?php echo $l->t('Lost your password?'); ?> - </li> - </a> - <?php endif; ?> - </ul> - <p class="infield grouptop"> - <input type="text" name="user" id="user" - value="<?php echo $_['username']; ?>"<?php echo $_['user_autofocus'] ? ' autofocus' : ''; ?> - autocomplete="on" required/> - <label for="user" class="infield"><?php echo $l->t('Username'); ?></label> - <img class="svg" src="<?php echo image_path('', 'actions/user.svg'); ?>" alt=""/> - </p> + <fieldset> + <?php if (!empty($_['redirect_url'])) { + echo '<input type="hidden" name="redirect_url" value="' . $_['redirect_url'] . '" />'; + } ?> + <ul> + <?php if (isset($_['invalidcookie']) && ($_['invalidcookie'])): ?> + <li class="errors"> + <?php echo $l->t('Automatic logon rejected!'); ?><br> + <small><?php echo $l->t('If you did not change your password recently, your account may be compromised!'); ?></small> + <br> + <small><?php echo $l->t('Please change your password to secure your account again.'); ?></small> + </li> + <?php endif; ?> + <?php if (isset($_['invalidpassword']) && ($_['invalidpassword'])): ?> + <a href="<?php echo OC_Helper::linkToRoute('core_lostpassword_index') ?>"> + <li class="errors"> + <?php echo $l->t('Lost your password?'); ?> + </li> + </a> + <?php endif; ?> + </ul> + <p class="infield grouptop"> + <input type="text" name="user" id="user" + value="<?php echo $_['username']; ?>"<?php echo $_['user_autofocus'] ? ' autofocus' : ''; ?> + autocomplete="on" required/> + <label for="user" class="infield"><?php echo $l->t('Username'); ?></label> + <img class="svg" src="<?php echo image_path('', 'actions/user.svg'); ?>" alt=""/> + </p> - <p class="infield groupbottom"> - <input type="password" name="password" id="password" value="" - required<?php echo $_['user_autofocus'] ? '' : ' autofocus'; ?> /> - <label for="password" class="infield"><?php echo $l->t('Password'); ?></label> - <img class="svg" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt=""/> - </p> - <input type="checkbox" name="remember_login" value="1" id="remember_login"/><label - for="remember_login"><?php echo $l->t('remember'); ?></label> - <input type="hidden" name="timezone-offset" id="timezone-offset"/> - <input type="submit" id="submit" class="login primary" value="<?php echo $l->t('Log in'); ?>"/> - </fieldset> + <p class="infield groupbottom"> + <input type="password" name="password" id="password" value="" + required<?php echo $_['user_autofocus'] ? '' : ' autofocus'; ?> /> + <label for="password" class="infield"><?php echo $l->t('Password'); ?></label> + <img class="svg" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt=""/> + </p> + <input type="checkbox" name="remember_login" value="1" id="remember_login"/><label + for="remember_login"><?php echo $l->t('remember'); ?></label> + <input type="hidden" name="timezone-offset" id="timezone-offset"/> + <input type="submit" id="submit" class="login primary" value="<?php echo $l->t('Log in'); ?>"/> + </fieldset> </form> <script> - $(document).ready(function () { - var visitortimezone = (-new Date().getTimezoneOffset() / 60); - $('#timezone-offset').val(visitortimezone); - }); + $(document).ready(function () { + var visitortimezone = (-new Date().getTimezoneOffset() / 60); + $('#timezone-offset').val(visitortimezone); + }); </script> |