From 85cf29693832d3e91e25abb43d852e6f7abb13be Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 11 Oct 2008 21:48:48 +0000 Subject: Add verification encryption password (#2) --- packages/autoconfigbackup/autoconfigbackup.inc | 4 ++++ packages/autoconfigbackup/autoconfigbackup.xml | 6 ++++++ 2 files changed, 10 insertions(+) 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 @@ crypto_password password + + Encryption Password again + Enter the encryption password again. + crypto_password2 + password + custom_php_validation_command($_POST, &$input_errors); -- cgit v1.2.3