summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-04 10:42:22 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-04 10:42:22 -0400
commit13b514b5e9be46a0b81bb64437cab06530a121b8 (patch)
tree36d22a6b158546cb9bdedf75b51905fa3d3e3114 /src
parent35e0cd707562a8c886310f70d7a5e824a53385cd (diff)
downloadpfsense-13b514b5e9be46a0b81bb64437cab06530a121b8.zip
pfsense-13b514b5e9be46a0b81bb64437cab06530a121b8.tar.gz
Added autocomplete = off to smtpusername
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/system_advanced_notifications.php22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/usr/local/www/system_advanced_notifications.php b/src/usr/local/www/system_advanced_notifications.php
index 8ebf2ef..b78f0a1 100644
--- a/src/usr/local/www/system_advanced_notifications.php
+++ b/src/usr/local/www/system_advanced_notifications.php
@@ -335,10 +335,11 @@ $section->addInput(new Form_Input(
// This name prevents the browser from auto-filling the field. We change it on submit
$section->addInput(new Form_Input(
- 'emanresuptms',
+ 'smtpusername',
'Notification E-Mail auth username (optional)',
'text',
- $pconfig['smtpusername']
+ $pconfig['smtpusername'],
+ ['autocomplete' => 'off']
))->setHelp('Enter the e-mail address username for SMTP authentication.');
$section->addInput(new Form_Input(
@@ -370,20 +371,5 @@ $section->addInput(new Form_Checkbox(
$form->add($section);
print($form);
-?>
-<script>
-//<![CDATA[
-events.push(function(){
- // Change the name and ID of the 'emanresuptms' field back to 'smtpusername' in an attempt
- // to prevent the browser from autofilling the field
- $('form').submit(function(){
- var elem = $('#emanresuptms');
- elem.attr('name', 'smtpusername');
- elem.attr('id', 'smtpusername');
-
- });
-});
-//]]>
-</script>
-<?php
+
include("foot.inc"); \ No newline at end of file
OpenPOWER on IntegriCloud