summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-02-22 11:41:47 +0100
committerAleksander Machniak <alec@alec.pl>2012-02-22 11:41:47 +0100
commitd48cf64a79e336d45b98ff53658514232af4e0bc (patch)
treeec381db183a341a34c6c79e559560f8442424e3c
parent402a865574651b22071f31c2f6aa3a15b6b99b04 (diff)
downloadwebadmin-d48cf64a79e336d45b98ff53658514232af4e0bc.tar.gz
Don't require password fields in user edit form
-rw-r--r--lib/client/kolab_client_task_user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/client/kolab_client_task_user.php b/lib/client/kolab_client_task_user.php
index c7497a0..4807e70 100644
--- a/lib/client/kolab_client_task_user.php
+++ b/lib/client/kolab_client_task_user.php
@@ -286,7 +286,7 @@ class kolab_client_task_user extends kolab_client_task
'description' => 'user.password.desc',
'type' => kolab_form::INPUT_TEXT,
'maxlength' => 50,
- 'required' => true,
+ 'required' => $new ? true : false,
'system' => true,
),
'userpassword2' => array(
@@ -294,7 +294,7 @@ class kolab_client_task_user extends kolab_client_task
'description' => 'user.password-confirm.desc',
'type' => kolab_form::INPUT_TEXT,
'maxlength' => 50,
- 'required' => true,
+ 'required' => $new ? true : false,
'system' => true,
),
'kolabhomeserver' => array(