summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-05-08 12:22:10 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-05-08 12:22:10 +0200
commit9ec43d94ce408bd40988492a1e6755076cf40a39 (patch)
tree53419ee1e321276aba9521a6dc353a7beae92aaf /lib/api/kolab_api_service_user.php
parent9efb8ac7f9acdc5e0cf91b720784495d79a4222f (diff)
downloadwebadmin-9ec43d94ce408bd40988492a1e6755076cf40a39.tar.gz
Password policy: do not validate the password on user edit, if the password is not being changed
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 035b8ca..43ab530 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -135,7 +135,9 @@ class kolab_api_service_user extends kolab_api_service
Log::trace("\$user_attributes as result from parse_input_attributes", $user_attributes);
- password_policy::validate_password($user_attributes['userpassword']);
+ if (!empty($user_attributes['userpassword'])) {
+ password_policy::validate_password($user_attributes['userpassword']);
+ }
$auth = Auth::get_instance();
$result = $auth->user_edit($postdata['id'], $user_attributes, $postdata['type_id']);