aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-11 21:48:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-11 21:48:48 +0000
commit85cf29693832d3e91e25abb43d852e6f7abb13be (patch)
tree4fd34baa7c541fefb89a48bc21e47e563108c073 /packages/autoconfigbackup
parent89a61a52371e7ff91a380fbd8a7e03884f36a974 (diff)
downloadpfsense-packages-85cf29693832d3e91e25abb43d852e6f7abb13be.tar.gz
pfsense-packages-85cf29693832d3e91e25abb43d852e6f7abb13be.tar.bz2
pfsense-packages-85cf29693832d3e91e25abb43d852e6f7abb13be.zip
Add verification encryption password (#2)
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc4
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc
index c1fd11c4..7cef7a12 100644
--- a/packages/autoconfigbackup/autoconfigbackup.inc
+++ b/packages/autoconfigbackup/autoconfigbackup.inc
@@ -31,6 +31,10 @@ function custom_php_validation_command($post, $input_errors) {
global $_POST;
if($post['password'] <> $post['passwordagain'])
$input_errors[] = "Sorry, the entered passwords do not match.";
+
+ if($post['crypto_password'] <> $post['crypto_password2'])
+ $input_errors[] = "Sorry, the entered encryption passwords do not match.";
+
}
?> \ No newline at end of file
diff --git a/packages/autoconfigbackup/autoconfigbackup.xml b/packages/autoconfigbackup/autoconfigbackup.xml
index 899d24c0..8155bc10 100644
--- a/packages/autoconfigbackup/autoconfigbackup.xml
+++ b/packages/autoconfigbackup/autoconfigbackup.xml
@@ -103,6 +103,12 @@
<fieldname>crypto_password</fieldname>
<type>password</type>
</field>
+ <field>
+ <fielddescr>Encryption Password again</fielddescr>
+ <description>Enter the encryption password again.</description>
+ <fieldname>crypto_password2</fieldname>
+ <type>password</type>
+ </field>
</fields>
<custom_php_validation_command>
custom_php_validation_command($_POST, &amp;$input_errors);