aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.inc
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/autoconfigbackup.inc
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/autoconfigbackup.inc')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc4
1 files changed, 4 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