Provide fake username on login form

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-11-06 08:29:41 +01:00
parent 4aaaaf5bbf
commit 9a56e8e723
+2
View File
@@ -42,6 +42,8 @@ require 'scripts/pi-hole/php/header.php';
<form action="" id="loginform" method="post">
<div class="form-group login-options has-feedback<?php if ($wrongpassword) { ?> has-error<?php } ?>">
<div class="pwd-field">
<!-- hidden username input field to help password managers to autfill the password -->
<input type="text" id="username" value="pi.hole" autocomplete="username" hidden>
<input type="password" id="loginpw" name="pw" class="form-control" placeholder="Password" spellcheck="false" autocomplete="current-password" autofocus>
<span class="fa fa-key form-control-feedback"></span>
</div>