aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup
diff options
context:
space:
mode:
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);