From 14f3cb5214f891365fb5e6d8d3bebdab897ddeef Mon Sep 17 00:00:00 2001
From: NOYB <1977521+NOYB@users.noreply.github.com>
Date: Mon, 22 Nov 2021 00:03:18 -0800
Subject: [PATCH] Prevent Browser Auto Fill Username/Password (#5311)
---
.../mvc/app/views/layout_partials/form_input_tr.volt | 2 +-
.../OPNsense/CaptivePortal/htdocs_default/index.html | 2 +-
src/www/diag_authentication.php | 2 +-
src/www/diag_backup.php | 8 ++++----
src/www/firewall_virtual_ip_edit.php | 2 +-
src/www/head.inc | 3 ++-
src/www/interfaces.php | 6 +++---
src/www/interfaces_ppps_edit.php | 2 +-
src/www/services_opendns.php | 2 +-
src/www/system_authservers.php | 4 ++--
src/www/system_certmanager.php | 4 ++--
src/www/system_hasync.php | 2 +-
src/www/system_usermanager.php | 4 ++--
src/www/system_usermanager_passwordmg.php | 6 +++---
src/www/vpn_openvpn_client.php | 4 ++--
15 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
index 6944023ee..fbc0f9724 100644
--- a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
+++ b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt
@@ -84,7 +84,7 @@
{{ lang._('Paste') }}
{% endif %}
{% elseif type == "password" %}
-
+
{% elseif type == "textbox" %}
{% elseif type == "info" %}
diff --git a/src/opnsense/scripts/OPNsense/CaptivePortal/htdocs_default/index.html b/src/opnsense/scripts/OPNsense/CaptivePortal/htdocs_default/index.html
index d8803e3d6..82bd8257d 100644
--- a/src/opnsense/scripts/OPNsense/CaptivePortal/htdocs_default/index.html
+++ b/src/opnsense/scripts/OPNsense/CaptivePortal/htdocs_default/index.html
@@ -175,7 +175,7 @@
-
+
diff --git a/src/www/diag_authentication.php b/src/www/diag_authentication.php
index ed37b63cb..8045d9815 100644
--- a/src/www/diag_authentication.php
+++ b/src/www/diag_authentication.php
@@ -120,7 +120,7 @@ include("head.inc");
| =gettext("Password"); ?> |
- |
+ |
| |
diff --git a/src/www/diag_backup.php b/src/www/diag_backup.php
index 0e887160b..e647ce136 100644
--- a/src/www/diag_backup.php
+++ b/src/www/diag_backup.php
@@ -359,11 +359,11 @@ $( document ).ready(function() {
@@ -408,7 +408,7 @@ $( document ).ready(function() {
@@ -460,7 +460,7 @@ $( document ).ready(function() {
-
+
diff --git a/src/www/firewall_virtual_ip_edit.php b/src/www/firewall_virtual_ip_edit.php
index d47216687..dd4ae6c05 100644
--- a/src/www/firewall_virtual_ip_edit.php
+++ b/src/www/firewall_virtual_ip_edit.php
@@ -434,7 +434,7 @@ $( document ).ready(function() {
| =gettext("Virtual IP Password");?> |
-
+
=gettext("Enter the VHID group password.");?>
diff --git a/src/www/head.inc b/src/www/head.inc
index e8463df26..3e0314ca9 100644
--- a/src/www/head.inc
+++ b/src/www/head.inc
@@ -128,7 +128,8 @@ $pagetitle .= html_safe(sprintf(' | %s.%s', $config['system']['hostname'], $conf
// div > .collapse').each(function(){
// cleanup empty second level menu containers
diff --git a/src/www/interfaces.php b/src/www/interfaces.php
index 8b53acb3c..08a5eeb76 100644
--- a/src/www/interfaces.php
+++ b/src/www/interfaces.php
@@ -2347,7 +2347,7 @@ include("head.inc");
|
| =gettext("Password"); ?> |
-
+
|
@@ -2415,7 +2415,7 @@ include("head.inc");
| =gettext("Password"); ?> |
-
+
|
@@ -2490,7 +2490,7 @@ include("head.inc");
| =gettext("Password"); ?> |
-
+
|
diff --git a/src/www/interfaces_ppps_edit.php b/src/www/interfaces_ppps_edit.php
index 1d781e5ed..8d00b6413 100644
--- a/src/www/interfaces_ppps_edit.php
+++ b/src/www/interfaces_ppps_edit.php
@@ -552,7 +552,7 @@ include("head.inc");
| = gettext("Password"); ?> |
-
+
|
diff --git a/src/www/services_opendns.php b/src/www/services_opendns.php
index 3c4fc6a6a..0a19b244d 100644
--- a/src/www/services_opendns.php
+++ b/src/www/services_opendns.php
@@ -181,7 +181,7 @@ include 'head.inc';
| =gettext('Password'); ?> |
-
+
|
diff --git a/src/www/system_authservers.php b/src/www/system_authservers.php
index 4047a4001..239130224 100644
--- a/src/www/system_authservers.php
+++ b/src/www/system_authservers.php
@@ -661,7 +661,7 @@ endif; ?>
=gettext("User DN:");?>
=gettext("Password:");?>
-
+
=gettext("Leave empty to use anonymous binds to resolve distinguished names");?>
@@ -793,7 +793,7 @@ endif; ?>
| =gettext("Shared Secret");?> |
-
+
|
diff --git a/src/www/system_certmanager.php b/src/www/system_certmanager.php
index af60720b0..8f9c0c11d 100644
--- a/src/www/system_certmanager.php
+++ b/src/www/system_certmanager.php
@@ -863,8 +863,8 @@ include("head.inc");
event.preventDefault();
var id = $(this).data('id');
- let password_input = $('">');
- let confirm_input = $('">');
+ let password_input = $('">');
+ let confirm_input = $('">');
let dialog_items = $('