Don't blank the password field on the login page

This interferes with password managers and the general consensus from the security community is that password managers improve security by encouraging stronger passwords and reducing password re-use.
This commit is contained in:
Matt N
2017-02-01 01:33:30 -08:00
committed by GitHub
parent 8b8b196d31
commit 30dd9d1fb4

View File

@@ -39,8 +39,7 @@ if ($gconfig{'showhost'}) {
&ui_print_unbuffered_header(
undef, undef, undef, undef, undef, 1, 1, undef,
"<title>$title</title>",
"onLoad='document.forms[0].pass.value = \"\"; ".
"document.forms[0].user.focus()'");
"onLoad='document.forms[0].user.focus()'");
if ($tconfig{'inframe'}) {
# Framed themes lose original page