diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-30 10:21:56 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-30 10:21:56 -0400 |
commit | a9af7aa6b2c0b903f8aaaa9a68d5de51af4d0b35 (patch) | |
tree | 748e808fb4e97ff3fa1ed8e3701f9d445fe2e75a /src/usr/local/www/wizards/setup_wizard.xml | |
parent | 401ccf37d5d59bd34bceac8efad347ee6fe029c8 (diff) | |
download | pfsense-a9af7aa6b2c0b903f8aaaa9a68d5de51af4d0b35.zip pfsense-a9af7aa6b2c0b903f8aaaa9a68d5de51af4d0b35.tar.gz |
Obscure password for pptp as well
Diffstat (limited to 'src/usr/local/www/wizards/setup_wizard.xml')
-rw-r--r-- | src/usr/local/www/wizards/setup_wizard.xml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/usr/local/www/wizards/setup_wizard.xml b/src/usr/local/www/wizards/setup_wizard.xml index 8935c9a..2abd49e 100644 --- a/src/usr/local/www/wizards/setup_wizard.xml +++ b/src/usr/local/www/wizards/setup_wizard.xml @@ -223,6 +223,14 @@ $('#pppoepassword').attr('type', 'password'); } }); + + $('#showpptppassword').click(function(event) { + if(this.checked) { + $('#pptppassword').attr('type', 'text'); + } else { + $('#pptppassword').attr('type', 'password'); + } + }); }); </javascriptafterformdisplay> @@ -250,7 +258,7 @@ <option> <name>PPTP</name> <value>pptp</value> - <enablefields>pptpusername,pptppassword,pptplocalipaddress,pptplocalsubnet,pptpremoteipaddress,pptpdialondemand,pptpidletimeout + <enablefields>pptpusername,pptppassword,pptplocalipaddress,pptplocalsubnet,pptpremoteipaddress,pptpdialondemand,pptpidletimeout,showpptppassword </enablefields> </option> </options> @@ -370,10 +378,16 @@ </field> <field> <name>PPTP Password</name> - <type>input</type> + <type>password</type> <bindstofield>wizardtemp->wan->pptppassword</bindstofield> </field> <field> + <name>Show PPTP password</name> + <type>checkbox</type> + <typehint>Reveal password characters</typehint> + <bindstofield>wizardtemp->wan->pptpshowpassword</bindstofield> + </field> + <field> <combinefieldsbegin>true</combinefieldsbegin> <name>PPTP Local IP Address</name> <type>input</type> |