Skip to content

Commit 43078c3

Browse files
authored
Merge pull request dokuwiki#4539 from hollisticated-horse/fix/login-accessibility
Login accessibility fixes
2 parents 50d695c + 4085a5a commit 43078c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/Ui/Login.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ public function show()
5353
$input = $form->addTextInput('u', $lang['user'])->id('focus__this')->addClass('edit')
5454
->val(($INPUT->bool('http_credentials')) ? '' : $INPUT->str('u'));
5555
$input->getLabel()->attr('class', 'block');
56+
$input->attr('autocomplete', 'username');
5657
$form->addHTML("<br>\n");
5758

5859
$input = $form->addPasswordInput('p', $lang['pass'])->addClass('block edit');
5960
$input->getLabel()->attr('class', 'block');
61+
$input->attr('autocomplete', 'current-password');
6062
$form->addHTML("<br>\n");
6163

6264
if ($conf['rememberme']) {

0 commit comments

Comments
 (0)