diff options
author | jim-p <jimp@pfsense.org> | 2011-05-12 10:45:30 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-12 10:45:30 -0400 |
commit | 1031c9ea7655ab64a513e3b168f70d672e30a733 (patch) | |
tree | a844f571c5d2e6eeff4b6e8d909c3315717cd42d /etc/inc/authgui.inc | |
parent | a1bad14197056b186726180846103fa922a94df6 (diff) | |
download | pfsense-1031c9ea7655ab64a513e3b168f70d672e30a733.zip pfsense-1031c9ea7655ab64a513e3b168f70d672e30a733.tar.gz |
Make autocomplete on the login form optional.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r-- | etc/inc/authgui.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc index 9655d79..d64d1cc 100644 --- a/etc/inc/authgui.inc +++ b/etc/inc/authgui.inc @@ -226,8 +226,9 @@ if($config['virtualip']) $nifty_background = "#999"; print_info_box(gettext("You are accessing this router by an IP address not configured locally, which may be forwarded by NAT or other means. <br/><br/>If you did not setup this forwarding, you may be the target of a man-in-the-middle attack.")); } + $noautocomplete = isset($config['system']['webgui']['noautocomplete']) ? 'autocomplete="off"' : ''; ?> - <form id="iform" name="login_iform" method="post" action="<?=$_SERVER['SCRIPT_NAME'];?>"> + <form id="iform" name="login_iform" method="post" <?= $noautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>"> <h1></h1> <div id="inputerrors"><?=$_SESSION['Login_Error'];?></div> <p> |