mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Disable autocomplete on all but the login form. Fixes #2459
This commit is contained in:
parent
b011547764
commit
fec04267ea
@ -14,5 +14,12 @@
|
||||
|
||||
</div> <!-- Wrapper Div -->
|
||||
|
||||
<?php outputJavaScriptFileInline("/usr/local/www/themes/{$g['theme']}/bottom-loader.js"); ?>
|
||||
|
||||
<?php outputJavaScriptFileInline("/usr/local/www/themes/{$g['theme']}/bottom-loader.js");
|
||||
/* Disable form autocomplete on all but the login screen. */
|
||||
if (basename($_SERVER["SCRIPT_FILENAME"] != "login.php")): ?>
|
||||
<script type="text/javascript">
|
||||
(function ($) {
|
||||
$("input").attr("autocomplete","off");
|
||||
})(jQuery);
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
Loading…
Reference in New Issue
Block a user