summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-09-01 14:15:29 +0200
committerGitHub <noreply@github.com>2016-09-01 14:15:29 +0200
commit1a43aaf8b4880788c0da3b8f55b6c242dd2f46bf (patch)
treeb93bee61f9a4bfec073f059dc01282cde5df23f4 /core
parentca7b60ba816e198202d1fb61e576013888636737 (diff)
parent56862e3fdc6e174b975c628c4f1700d267cc203f (diff)
downloadnextcloud-server-1a43aaf8b4880788c0da3b8f55b6c242dd2f46bf.tar.gz
nextcloud-server-1a43aaf8b4880788c0da3b8f55b6c242dd2f46bf.zip
Merge pull request #1219 from coderkun/issue-1110-tabindex
Add attribute “tabindex” to login form (fixes #1110)
Diffstat (limited to 'core')
-rw-r--r--core/templates/login.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index c5453c34497..49fa0dd6aff 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -43,7 +43,7 @@ script('core', [
placeholder="<?php p($l->t('Username or email')); ?>"
value="<?php p($_['loginName']); ?>"
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
- autocomplete="on" autocapitalize="off" autocorrect="off" required>
+ autocomplete="on" autocapitalize="off" autocorrect="off" required tabindex="1">
<label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
</p>
@@ -51,9 +51,9 @@ script('core', [
<input type="password" name="password" id="password" value=""
placeholder="<?php p($l->t('Password')); ?>"
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
- autocomplete="on" autocapitalize="off" autocorrect="off" required>
+ autocomplete="on" autocapitalize="off" autocorrect="off" required tabindex="2">
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
- <input type="submit" id="submit" class="login primary icon-confirm" title="<?php p($l->t('Log in')); ?>" value="" disabled="disabled"/>
+ <input type="submit" id="submit" class="login primary icon-confirm" title="<?php p($l->t('Log in')); ?>" value="" disabled="disabled" tabindex="4" />
</p>
<?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
@@ -68,9 +68,9 @@ script('core', [
<?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">
+ <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" tabindex="3">
<?php } else { ?>
- <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked">
+ <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked" tabindex="3">
<?php } ?>
<label for="remember_login"><?php p($l->t('Stay logged in')); ?></label>
</div>